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 6fc267a07d779671a975a146cf595cf3ade2dfd9 1 parent f359fd6
Brian Jorgensen authored samhemelryk committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/outputlib.php
View
8 lib/outputlib.php
@@ -416,6 +416,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
@@ -1343,4 +1349,4 @@ protected function log($action, $type) {
protected function output_log() {
return '<ul>' . implode("\n", $this->log) . '</ul>';
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.