Merge pull request #2331 from fabrixxm/revert_pr2319

Revert "Merge pull request #2319 from stieben/develop"
This commit is contained in:
Michael Vogel 2016-02-09 10:52:46 +01:00
commit 2932ebfbc8
2 changed files with 3 additions and 24 deletions

View file

@ -59,19 +59,7 @@ The same rule applies to the JavaScript files found in
they will be overwritten by files in they will be overwritten by files in
/view/theme/**your-theme-name**/js /view/theme/**your-theme-name**/js.
### Modules
You have the freedom to override core modules found in
/mod
They will be overwritten by files in
/view/theme/**your-theme-name**/mod
Be aware that you can break things easily here if you don't know what you do. Also notice that you can override parts of the module functions not defined in your theme module will be loaded from the core module.
## Expand an existing Theme ## Expand an existing Theme

View file

@ -233,16 +233,7 @@ if(strlen($a->module)) {
} }
/** /**
* If not, next look for module overrides by the theme * If not, next look for a 'standard' program module in the 'mod' directory
*/
if((! $a->module_loaded) && (file_exists("view/theme/" . current_theme() . "/mod/{$a->module}.php"))) {
include_once("view/theme/" . current_theme() . "/mod/{$a->module}.php");
// We will not set module_loaded to true to allow for partial overrides.
}
/**
* Finally, look for a 'standard' program module in the 'mod' directory
*/ */
if((! $a->module_loaded) && (file_exists("mod/{$a->module}.php"))) { if((! $a->module_loaded) && (file_exists("mod/{$a->module}.php"))) {