moodle-theme_elegance icon indicating copy to clipboard operation
moodle-theme_elegance copied to clipboard

Strict standards notice changing theme

Open kordan opened this issue 10 years ago • 2 comments

Upgrade your moodle test site to last weekly release. Go to change the theme. Once you push the "Change theme" button in head/theme/index.php you get: Strict standards: Declaration of theme_elegance_core_renderer::user_menu() should be compatible with theme_bootstrap_core_renderer::user_menu($user = NULL, $withlinks = NULL) in /head/theme/elegance/renderers/core_renderer.php on line 0

To fix this simply change line102 of head/theme/elegance/renderers/core_renderer.php from public function user_menu() { to public function user_menu($user=NULL, $withlinks=NULL) {

kordan avatar Oct 16 '14 07:10 kordan

Works like a charm.

richardschwarz avatar Jan 09 '15 04:01 richardschwarz

Did you set

  • Debug messages to DEVELOPER: extra Moodle debug messages for developers
  • Display debug messages to Yes

in Home > Site administration > Development > Debugging?

kordan avatar Jan 09 '15 06:01 kordan