From 102ce41088378ecdad3634a4daebc3d7cbffd1f0 Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 14 Mar 2007 12:04:56 +0000 Subject: [PATCH] MDL-8360 - Currently can't bookmark admin searches, so disable the ability to bookmark the search page --- blocks/admin_bookmarks/block_admin_bookmarks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index ee427de847b..fdbd61bd547 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') . '';