1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 23:35:56 +00:00

Merge branch 'master' of bah.org.ru:public_html/testbox/tt-rss

This commit is contained in:
Andrew Dolgov
2010-01-28 18:49:54 +03:00
4 changed files with 25 additions and 25 deletions

View File

@@ -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);
}