Permalink
Browse files

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

  • Loading branch information...
1 parent c91704e commit 5ceb78283c612f1845bb2e38a5377e1fd92eac50 Brian Jorgensen committed Mar 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/outputlib.php
View
@@ -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

0 comments on commit 5ceb782

Please sign in to comment.