From a989172a5c17a2e2680762077ffb2611adc6e8b2 Mon Sep 17 00:00:00 2001 From: poltawski Date: Thu, 15 Mar 2007 00:54:31 +0000 Subject: [PATCH] MDL-8906 - Actually, I'll Fix blocks editing on search pages, by adding the query - merged from MOODLE_18_STABLE --- admin/pagelib.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/admin/pagelib.php b/admin/pagelib.php index ac87f0d1dd..b1f45c99ce 100644 --- a/admin/pagelib.php +++ b/admin/pagelib.php @@ -117,11 +117,14 @@ 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->section != 'search' and $this->user_allowed_editing()) { + if ($this->user_allowed_editing()) { $buttons = '
frametarget.' method="get" action="' . $this->url_get_path() . '">'. '
'. - ''. - '
'; + ''; + if(isset($CFG->adminsearchquery)){ + $buttons.=''; + } + $buttons.=''; } else { $buttons = ' '; } -- 2.39.5