tt-rss/include/db-prefs.php

10 lines
335 B
PHP
Raw Permalink Normal View History

2006-08-19 09:04:45 +02:00
<?php
2005-11-16 17:57:08 +01:00
require_once "db.php";
function get_pref($pref_name, $user_id = false, $die_on_error = false) {
2013-04-18 10:00:01 +02:00
return Db_Prefs::get()->read($pref_name, $user_id, $die_on_error);
2005-12-29 15:21:34 +01:00
}
function set_pref($pref_name, $value, $user_id = false, $strip_tags = true) {
2013-04-18 10:00:01 +02:00
return Db_Prefs::get()->write($pref_name, $value, $user_id, $strip_tags);
2017-04-26 19:24:18 +02:00
}