mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 13:21:29 +00:00
get_user_theme_path()
This commit is contained in:
@@ -709,4 +709,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user