summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-01-28 18:49:17 +0300
committerAndrew Dolgov <[email protected]>2010-01-28 18:49:17 +0300
commit0b9751cd650c917d3e7f5dc5493483f8b026bf21 (patch)
tree5a1526f465e11835dd9df3ab9a4e298b939ad52d /functions.php
parent2712bcea09a5db4477fefbf939324d24cb72d838 (diff)
theme_image: do not display themed image if noone is logged in
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 6a18ffbf3..27c07fda8 100644
--- a/functions.php
+++ b/functions.php
@@ -2047,7 +2047,7 @@
function get_user_theme($link) {
- if (get_schema_version($link) >= 63) {
+ if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
$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) {
+ if (get_schema_version($link) >= 63 && $_SESSION["uid"]) {
$theme_name = get_pref($link, "_THEME_ID");
if ($theme_name && is_dir("themes/$theme_name")) {
@@ -3751,7 +3751,7 @@
$res = preg_replace('/<img[^>]+>/is', '', $res);
}
- if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) {
+ if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
$res = preg_replace("/href=/i", "target=\"_blank\" href=", $res);
}