From 4c5c7b6a5b337d0c78d34a0b3c4ca89f70a72b8d Mon Sep 17 00:00:00 2001 From: poltawski Date: Thu, 15 Mar 2007 01:08:26 +0000 Subject: [PATCH] MDL-8906 - Whoops, reverting - all the block functions are broken, so its useless trying to edit the blocks page.. --- admin/pagelib.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 = ' '; } -- 2.39.5