MDL-8765 user preference usage cleanup

This commit is contained in:
skodak
2007-03-06 10:45:49 +00:00
parent 06565ec739
commit f2d042c4c3
6 changed files with 15 additions and 19 deletions
@@ -36,8 +36,8 @@ class block_admin_bookmarks extends block_base {
$this->content = new stdClass;
$this->content->text = '';
if (isset($USER->preference['admin_bookmarks'])) {
$bookmarks = explode(',',$USER->preference['admin_bookmarks']);
if (get_user_preferences('admin_bookmarks')) {
$bookmarks = explode(',',get_user_preferences('admin_bookmarks'));
// hmm... just a liiitle (potentially) processor-intensive
// (recall that $adminroot->locate is a huge recursive call... and we're calling it repeatedly here