aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-26 23:05:00 -0700
committerfriendica <info@friendica.com>2012-08-26 23:05:00 -0700
commit5ff6e9348b41bc87b03bafc4d9df73b383af074e (patch)
treec26b1b26cd38f7ec78e83905266053618a3e1db4 /boot.php
parentf0e299a97a8c46fd66bbc47e5b84d4b76d763154 (diff)
downloadvolse-hubzilla-5ff6e9348b41bc87b03bafc4d9df73b383af074e.tar.gz
volse-hubzilla-5ff6e9348b41bc87b03bafc4d9df73b383af074e.tar.bz2
volse-hubzilla-5ff6e9348b41bc87b03bafc4d9df73b383af074e.zip
a few minor changes
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/boot.php b/boot.php
index 8bcceff88..b5fd9333c 100644
--- a/boot.php
+++ b/boot.php
@@ -359,7 +359,8 @@ function startup() {
if(! class_exists('App')) {
class App {
- public $account;
+ public $account = null;
+ public $identity = null;
public $language;
public $module_loaded = false;
public $query_string;
@@ -487,10 +488,6 @@ if(! class_exists('App')) {
if(substr($this->cmd,0,1) === '~')
$this->cmd = 'profile/' . substr($this->cmd,1);
- // Diaspora style profile url
-
- if(substr($this->cmd,0,2) === 'u/')
- $this->cmd = 'profile/' . substr($this->cmd,2);
/**
*
@@ -528,7 +525,7 @@ if(! class_exists('App')) {
$this->module = 'hostxrd';
}
- if(strstr($this->cmd,'.well-known/zot-guid/')) {
+ if(strstr($this->cmd,'.well-known/zot-guid')) {
$this->argc -= 1;
array_shift($this->argv);
$this->argv[0] = 'zfinger';
@@ -977,8 +974,14 @@ if(! function_exists('goaway')) {
}
}
+function get_account_id() {
+ if(get_app()->account)
+ return intval(get_app()->account['account_id']);
+ return false;
+}
+
-// Returns the uid of locally logged in user or false.
+// Returns the entity id of locally logged in user or false.
if(! function_exists('local_user')) {
function local_user() {