]> git.wh0rd.org Git - tt-rss.git/blob - include/db-prefs.php
Merge pull request #410 from bram85/master
[tt-rss.git] / include / db-prefs.php
1 <?php
2         require_once "db.php";
3
4         function get_pref($pref_name, $user_id = false, $die_on_error = false) {
5                 return Db_Prefs::get()->read($pref_name, $user_id, $die_on_error);
6         }
7
8         function set_pref($pref_name, $value, $user_id = false, $strip_tags = true) {
9                 return Db_Prefs::get()->write($pref_name, $value, $user_id, $strip_tags);
10         }
11 ?>