diff --git a/lib/outputlib.php b/lib/outputlib.php index 9d53be73141..2a843be9ba9 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -416,6 +416,12 @@ class theme_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 @@ -1343,4 +1349,4 @@ class xhtml_container_stack { protected function output_log() { return ''; } -} \ No newline at end of file +}