diff options
author | redmatrix <git@macgirvin.com> | 2016-03-07 15:11:11 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-03-07 15:11:11 -0800 |
commit | 76467b5a35111c44ff539146ab0810118b42dc70 (patch) | |
tree | 2b740f94a37c61d20feeba8243f45e4ed67c0434 /boot.php | |
parent | d5db25808a0847e09ee3735faeac3552c722e0ae (diff) | |
download | volse-hubzilla-76467b5a35111c44ff539146ab0810118b42dc70.tar.gz volse-hubzilla-76467b5a35111c44ff539146ab0810118b42dc70.tar.bz2 volse-hubzilla-76467b5a35111c44ff539146ab0810118b42dc70.zip |
allow modules/addons to override the og:title field
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -874,8 +874,6 @@ class App { spl_autoload_register('ZotlabsAutoloader::loader'); $this->OG = new Zotlabs\Web\OpenGraph(); - - } function get_baseurl($ssl = false) { @@ -1024,7 +1022,9 @@ class App { if(! x($this->page,'title')) $this->page['title'] = $this->config['system']['sitename']; - $this->OG->set('og:title',$this->page['title']); + + if(! $this->OG->get_field('og:title')) + $this->OG->set('og:title',$this->page['title']); /* put the head template at the beginning of page['htmlhead'] * since the code added by the modules frequently depends on it |