mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-8906 - Blocks Editting Broken on Admin Search Results page, so disable
edit button
This commit is contained in:
parent
fc4ac66431
commit
f6a157d14a
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
$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 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 = '<div><form '.$CFG->frametarget.' method="get" action="' . $this->url_get_path() . '">'.
|
$buttons = '<div><form '.$CFG->frametarget.' method="get" action="' . $this->url_get_path() . '">'.
|
||||||
'<div><input type="hidden" name="adminedit" value="'.($this->user_is_editing()?'off':'on').'" />'.
|
'<div><input type="hidden" name="adminedit" value="'.($this->user_is_editing()?'off':'on').'" />'.
|
||||||
'<input type="hidden" name="section" value="'.$this->section.'" />'.
|
'<input type="hidden" name="section" value="'.$this->section.'" />'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue