Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-8360 - Currently can't bookmark admin searches, so disable the ab…

…ility to bookmark

the search page
  • Loading branch information...
commit fd52f257ff40e1f59d2998edf5a25dc366bcea02 1 parent 94c9630
poltawski authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 blocks/admin_bookmarks/block_admin_bookmarks.php
View
5 blocks/admin_bookmarks/block_admin_bookmarks.php
@@ -57,7 +57,10 @@ function get_content() {
$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 = '<a href="' . $CFG->wwwroot . '/blocks/admin_bookmarks/delete.php?section=' . $section . '&amp;sesskey='.sesskey().'">' . get_string('unbookmarkthispage','admin') . '</a>';
} elseif ($section = (isset($PAGE->section) ? $PAGE->section : '')) {
$this->content->footer = '<a href="' . $CFG->wwwroot . '/blocks/admin_bookmarks/create.php?section=' . $section . '&amp;sesskey='.sesskey().'">' . get_string('bookmarkthispage','admin') . '</a>';
Please sign in to comment.
Something went wrong with that request. Please try again.