Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31109 fix maintenance link value in get_string()

  • Loading branch information...
commit 04c0a7d20568aa3b8c102d1c2d7c66e9e4470396 1 parent f70f6e9
@skodak skodak authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 admin/renderer.php
View
6 admin/renderer.php
@@ -339,8 +339,10 @@ public function maintenance_mode_warning($maintenancemode) {
return '';
}
- return $this->warning(get_string('sitemaintenancewarning2', 'admin',
- new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'))));
+ $url = new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'));
+ $url = $url->out(); // get_string() does not support objects in params
+
+ return $this->warning(get_string('sitemaintenancewarning2', 'admin', $url));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.