aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-07 15:11:11 -0800
committerredmatrix <git@macgirvin.com>2016-03-07 15:11:11 -0800
commit76467b5a35111c44ff539146ab0810118b42dc70 (patch)
tree2b740f94a37c61d20feeba8243f45e4ed67c0434 /Zotlabs/Web
parentd5db25808a0847e09ee3735faeac3552c722e0ae (diff)
downloadvolse-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 'Zotlabs/Web')
-rw-r--r--Zotlabs/Web/OpenGraph.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Web/OpenGraph.php b/Zotlabs/Web/OpenGraph.php
index b14b2b989..f282c82d4 100644
--- a/Zotlabs/Web/OpenGraph.php
+++ b/Zotlabs/Web/OpenGraph.php
@@ -29,6 +29,13 @@ class OpenGraph {
return false;
}
+ function get_field($field) {
+ if($this->vars && array_key_exists($field,$this->vars) && $this->vars[$field])
+ return $this->vars[$field];
+ return false;
+ }
+
+
function get() {
if($this->check_required()) {
$o = "\r\n";