From 76467b5a35111c44ff539146ab0810118b42dc70 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 7 Mar 2016 15:11:11 -0800 Subject: allow modules/addons to override the og:title field --- Zotlabs/Web/OpenGraph.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Zotlabs/Web') 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"; -- cgit v1.2.3