Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31984: add debugging message if theme renderer file is missnamed

  • Loading branch information...
commit 2e83093eba865cb6a8b14053278fa2ac014a303e 1 parent 8b66d25
Brian Jorgensen authored samhemelryk committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/outputlib.php
View
6 lib/outputlib.php
@@ -441,6 +441,12 @@ private function __construct($config) {
if (is_readable($rendererfile)) {
// may contain core and plugin renderers and renderer factory
include_once($rendererfile);
+ } else {
+ // check if renderers.php file is missnamed renderer.php
+ if (is_readable($this->dir.'/renderer.php')) {
+ debugging('Developer hint: '.$this->dir.'/renderer.php should be renamed to ' . $this->dir."/renderers.php.
+ See: http://docs.moodle.org/dev/Output_renderers#Theme_renderers.", DEBUG_DEVELOPER);
+ }
}
// cascade all layouts properly
Please sign in to comment.
Something went wrong with that request. Please try again.