aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 2a3a3d062..1b593402b 100755
--- a/boot.php
+++ b/boot.php
@@ -47,7 +47,7 @@ require_once('include/account.php');
define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')));
-define ( 'STD_VERSION', '1.2.5' );
+define ( 'STD_VERSION', '1.3.0' );
define ( 'ZOT_REVISION', 1 );
define ( 'DB_UPDATE_VERSION', 1165 );
@@ -753,6 +753,7 @@ class App {
private $baseurl;
+ private $meta;
/**
* App constructor.
@@ -767,6 +768,7 @@ class App {
$this->query_string = '';
+
startup();
set_include_path(
@@ -871,6 +873,7 @@ class App {
spl_autoload_register('ZotlabsAutoloader::loader');
+ $this->meta= new Zotlabs\Web\HttpMeta();
}
function get_baseurl($ssl = false) {
@@ -1020,6 +1023,11 @@ class App {
if(! x($this->page,'title'))
$this->page['title'] = $this->config['system']['sitename'];
+ if(! $this->meta->get_field('og:title'))
+ $this->meta->set('og:title',$this->page['title']);
+
+ $this->meta->set('generator', Zotlabs\Project\System::get_platform_name());
+
/* put the head template at the beginning of page['htmlhead']
* since the code added by the modules frequently depends on it
* being first
@@ -1030,7 +1038,7 @@ class App {
'$user_scalable' => $user_scalable,
'$baseurl' => $this->get_baseurl(),
'$local_channel' => local_channel(),
- '$generator' => Zotlabs\Project\System::get_platform_name() . ((Zotlabs\Project\System::get_project_version()) ? ' ' . Zotlabs\Project\System::get_project_version() : ''),
+ '$metas' => $this->meta->get(),
'$update_interval' => $interval,
'$icon' => head_get_icon(),
'$head_css' => head_get_css(),