aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-17 19:49:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-17 19:49:36 -0700
commit7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00 (patch)
treed88838524fa5f6cbf1d072da73eddafd4b752ffb /boot.php
parentf0cb3cba124e637fa46143b692dbb561d4ee3ae0 (diff)
parent76558df9667b4900b4036faca0075985596b93cd (diff)
downloadvolse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.tar.gz
volse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.tar.bz2
volse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.zip
Merge branch 'master' into tres
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index de82f951d..09a8bef7e 100755
--- a/boot.php
+++ b/boot.php
@@ -605,6 +605,7 @@ class App {
public $observer = null; // xchan record of the page observer
public $profile_uid = 0; // If applicable, the channel_id of the "page owner"
public $poi = null; // "person of interest", generally a referenced connection
+ private $oauth_key = null; // consumer_id of oauth request, if used
public $layout = array(); // Comanche parsed template
public $pdl = null;
private $perms = null; // observer permissions
@@ -888,6 +889,7 @@ class App {
$this->observer = $xchan;
}
+
function get_observer() {
return $this->observer;
}
@@ -900,6 +902,14 @@ class App {
return $this->perms;
}
+ function set_oauth_key($consumer_id) {
+ $this->oauth_key = $consumer_id;
+ }
+
+ function get_oauth_key() {
+ return $this->oauth_key;
+ }
+
function get_apps() {
return $this->apps;
}
@@ -2093,7 +2103,9 @@ function construct_page(&$a) {
}
// And a couple of convenience macros
-
+ if(strpos($v, '$htmlhead') !== false) {
+ $v = str_replace('$htmlhead', $a->page['htmlhead'], $v);
+ }
if(strpos($v, '$nav') !== false) {
$v = str_replace('$nav', $a->page['nav'], $v);
}