more bugs with admin prefs. also, I can never remember if it's =& or &=.

orig_fof
steveminutillo 2007-06-29 04:11:23 +00:00
parent ad8833a08a
commit 71718f66b7
3 changed files with 6 additions and 10 deletions

View File

@ -33,7 +33,7 @@ ob_end_clean();
if(!$fof_no_login)
{
require_user();
$fof_prefs_obj = FoF_Prefs::instance();
$fof_prefs_obj =& FoF_Prefs::instance();
}
require_once('simplepie/simplepie.inc');
@ -663,7 +663,7 @@ function fof_mark_item_unread($feed_id, $id)
function fof_parse($url)
{
$p &= FoF_Prefs::instance();
$p =& FoF_Prefs::instance();
$admin_prefs = $p->admin_prefs;
$pie = new SimplePie();
@ -829,7 +829,7 @@ function fof_update_feed($id)
// unread or starred, not currently in the feed or within sizeof(feed) items
// of being in the feed, and are over 'purge' many days old
$p &= FoF_Prefs::instance();
$p =& FoF_Prefs::instance();
$admin_prefs = $p->admin_prefs;
if($admin_prefs['purge'] != "")

View File

@ -17,16 +17,12 @@ set_time_limit(60*10);
ob_start();
$fof_no_login = true;
$fof_user_id = 1;
include_once("fof-main.php");
$p = new FoF_Prefs(1);
$p =& FoF_Prefs::instance();
$fof_admin_prefs = $p->prefs;
$result = fof_safe_query("select user_prefs from $FOF_USER_TABLE where user_id = 1");
$row = mysql_fetch_array($result);
$fof_admin_prefs = unserialize($row['user_prefs']);
if(!isset($fof_admin_prefs['autotimeout'])) $fof_admin_prefs['autotimeout'] = 30;
$result = fof_db_get_feeds();
$feeds = array();

View File

@ -19,7 +19,7 @@ print("<br>");
$feed = $_GET['feed'];
$feeds = array();
$p = FoF_Prefs::instance();
$p =& FoF_Prefs::instance();
$admin_prefs = $p->admin_prefs;
if($feed)