From cb9196f6d69a713b6825b9721492f667b2811801 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 25 Jan 2015 00:58:51 +0100 Subject: [PATCH] Issue 1197: New hook for "oembed_fetch_url" --- .gitignore | 4 ++++ include/oembed.php | 2 ++ view/theme/vier/theme.php | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) 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