ttrss/include/db-prefs.php

8 lines
310 B
PHP
Raw Normal View History

2006-08-19 07:04:45 +00:00
<?php
function get_pref($pref_name, $user_id = false, $die_on_error = false) {
2013-04-18 08:00:01 +00:00
return Db_Prefs::get()->read($pref_name, $user_id, $die_on_error);
2005-12-29 14:21:34 +00:00
}
function set_pref($pref_name, $value, $user_id = false, $strip_tags = true) {
2013-04-18 08:00:01 +00:00
return Db_Prefs::get()->write($pref_name, $value, $user_id, $strip_tags);
2017-04-26 17:24:18 +00:00
}