From: poltawski Date: Wed, 14 Mar 2007 12:04:56 +0000 (+0000) Subject: MDL-8360 - Currently can't bookmark admin searches, so disable the ability to bookmark X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=102ce41088378ecdad3634a4daebc3d7cbffd1f0;p=moodle.git MDL-8360 - Currently can't bookmark admin searches, so disable the ability to bookmark the search page --- diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index ee427de847..fdbd61bd54 100644 --- a/blocks/admin_bookmarks/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/block_admin_bookmarks.php @@ -57,7 +57,10 @@ class block_admin_bookmarks extends block_base { $bookmarks = array(); } - if (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) { + if($PAGE->section == 'search'){ + // the search page can't be properly bookmarked at present + $this->content->footer = ''; + }elseif (($section = (isset($PAGE->section) ? $PAGE->section : '')) && (in_array($section, $bookmarks))) { $this->content->footer = '' . get_string('unbookmarkthispage','admin') . ''; } elseif ($section = (isset($PAGE->section) ? $PAGE->section : '')) { $this->content->footer = '' . get_string('bookmarkthispage','admin') . '';