From: poltawski Date: Thu, 15 Mar 2007 00:35:41 +0000 (+0000) Subject: MDL-8906 - Blocks Editting Broken on Admin Search Results page, so disable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2e2e52c7d99ff440bd9f01952dd9da45917098bc;p=moodle.git MDL-8906 - Blocks Editting Broken on Admin Search Results page, so disable edit button, merged from MOODLE_18_STABLE --- diff --git a/admin/pagelib.php b/admin/pagelib.php index cb02dcf8e0..ac87f0d1dd 100644 --- a/admin/pagelib.php +++ b/admin/pagelib.php @@ -116,7 +116,8 @@ class page_admin extends page_base { $this->init_full($section); // we're trusting that init_full() has already been called by now; it should have. // if not, print_header() has to be called with a $section parameter - if ($this->user_allowed_editing()) { + // The search page currently doesn't handle block editing + if ($this->section != 'search' and $this->user_allowed_editing()) { $buttons = '
frametarget.' method="get" action="' . $this->url_get_path() . '">'. '
'. ''.