Heads up: "custom/module.php" is deprecated. Please read this commit if you are affected.
This commit is contained in:
parent
4e454656fe
commit
11ccf253e2
14
index.php
14
index.php
@ -197,7 +197,19 @@ if(strlen($a->module)) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if(! $a->module_loaded) {
|
if(! $a->module_loaded) {
|
||||||
if(file_exists("custom/{$a->module}.php")) {
|
|
||||||
|
/*
|
||||||
|
* Traditionally we looked in custom first, but we're leaning toward a convention where site
|
||||||
|
* specific things are all in directories called 'site'. So custom will be going away.
|
||||||
|
* There are a very small number of folks affected. You know who you are. Once you've got things sorted,
|
||||||
|
* please remove the lines for "custom/" and push to the project repository.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(file_exists("mod/site/{$a->module}.php")) {
|
||||||
|
include_once("mod/site/{$a->module}.php");
|
||||||
|
$a->module_loaded = true;
|
||||||
|
}
|
||||||
|
elseif(file_exists("custom/{$a->module}.php")) {
|
||||||
include_once("custom/{$a->module}.php");
|
include_once("custom/{$a->module}.php");
|
||||||
$a->module_loaded = true;
|
$a->module_loaded = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user