From: Michael Vogel Date: Sat, 24 Jan 2015 23:58:51 +0000 (+0100) Subject: Issue 1197: New hook for "oembed_fetch_url" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb9196f6d69a713b6825b9721492f667b2811801;p=friendica.git Issue 1197: New hook for "oembed_fetch_url" --- diff --git a/.gitignore b/.gitignore index 06dc807bd5..85d3271e91 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,11 @@ report/ #ignore cache folders /privacy_image_cache/ /photo/ +/proxy/ nbproject #ignore vagrant dir .vagrant/ + +#ignore test folder +/test/ diff --git a/include/oembed.php b/include/oembed.php index 0d7e5ee84f..00489193f3 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -110,6 +110,8 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){ } } + call_hooks('oembed_fetch_url', $embedurl, $j); + return $j; } diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 62bbbcbf0e..14210d2424 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -22,14 +22,14 @@ if ($style == "") if ($style == "flat") $a->page['htmlhead'] .= ''."\n"; -if ($style == "dark") - $a->page['htmlhead'] .= ''."\n"; else if ($style == "netcolour") $a->page['htmlhead'] .= ''."\n"; else if ($style == "breathe") $a->page['htmlhead'] .= ''."\n"; else if ($style == "plus") $a->page['htmlhead'] .= ''."\n"; +else if ($style == "dark") + $a->page['htmlhead'] .= ''."\n"; $a->page['htmlhead'] .= <<< EOT