mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
11 lines
339 B
PHP
11 lines
339 B
PHP
<?php
|
|
require_once "db.php";
|
|
|
|
function get_pref($pref_name, $user_id = false, $die_on_error = false) {
|
|
return Db_Prefs::get()->read($pref_name, $user_id, $die_on_error);
|
|
}
|
|
|
|
function set_pref($pref_name, $value, $user_id = false, $strip_tags = true) {
|
|
return Db_Prefs::get()->write($pref_name, $value, $user_id, $strip_tags);
|
|
}
|
|
?>
|