get_user_theme_path()

This commit is contained in:
Andrew Dolgov 2005-11-26 07:40:47 +01:00
parent 58f8ad544e
commit 54a60e1a00
1 changed files with 11 additions and 0 deletions

View File

@ -709,4 +709,15 @@
return $str; return $str;
} }
} }
function get_user_theme_path($link) {
$result = db_query($link, "SELECT theme_path FROM ttrss_themes
WHERE id = (SELECT theme_id FROM ttrss_users
WHERE id = " . $_SESSION["uid"] . ")");
if (db_num_rows($result) != 0) {
return db_fetch_result($result, 0, "theme_path");
} else {
return null;
}
}
?> ?>