From: poltawski Date: Thu, 15 Mar 2007 01:08:26 +0000 (+0000) Subject: MDL-8906 - Whoops, reverting - all the block functions are broken, so its useless... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4c5c7b6a5b337d0c78d34a0b3c4ca89f70a72b8d;p=moodle.git MDL-8906 - Whoops, reverting - all the block functions are broken, so its useless trying to edit the blocks page.. --- diff --git a/admin/pagelib.php b/admin/pagelib.php index b1f45c99ce..ac87f0d1dd 100644 --- a/admin/pagelib.php +++ b/admin/pagelib.php @@ -117,14 +117,11 @@ class page_admin extends page_base { // if not, print_header() has to be called with a $section parameter // The search page currently doesn't handle block editing - if ($this->user_allowed_editing()) { + if ($this->section != 'search' and $this->user_allowed_editing()) { $buttons = '
frametarget.' method="get" action="' . $this->url_get_path() . '">'. '
'. - ''; - if(isset($CFG->adminsearchquery)){ - $buttons.=''; - } - $buttons.='
'; + ''. + ''; } else { $buttons = ' '; }