From a522a76734328818dd9d863a424a609d56728df6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Jan 2010 18:52:46 +0300 Subject: Revert "theme_image: do not display themed image if noone is logged in" bad patch This reverts commit 0b9751cd650c917d3e7f5dc5493483f8b026bf21. --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 471f1fe7f..ec0f484ad 100644 --- a/functions.php +++ b/functions.php @@ -2047,7 +2047,7 @@ function get_user_theme($link) { - if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { + if (get_schema_version($link) >= 63) { $theme_name = get_pref($link, "_THEME_ID"); if (is_dir("themes/$theme_name")) { return $theme_name; @@ -2062,7 +2062,7 @@ function get_user_theme_path($link) { - if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { + if (get_schema_version($link) >= 63) { $theme_name = get_pref($link, "_THEME_ID"); if ($theme_name && is_dir("themes/$theme_name")) { @@ -3751,7 +3751,7 @@ $res = preg_replace('/]+>/is', '', $res); } - if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { + if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) { $res = preg_replace("/href=/i", "target=\"_blank\" href=", $res); } -- cgit v1.2.3