diff options
author | Andrew Dolgov <[email protected]> | 2005-11-26 07:40:47 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-26 07:40:47 +0100 |
commit | 54a60e1a0001da296b73eee86c27babdb9abd4c3 (patch) | |
tree | c727d581077f69d76c6dfae285cc133f3f67a985 /functions.php | |
parent | 58f8ad544e5c7f65e5f91b56cc799fd430f120b2 (diff) |
get_user_theme_path()
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/functions.php b/functions.php index de164c71d..89bc07d8e 100644 --- a/functions.php +++ b/functions.php @@ -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; + } + } ?> |