aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-30 20:27:41 -0700
committerfriendica <info@friendica.com>2014-10-30 20:27:41 -0700
commit11ccf253e213fbd71916a53220bb05a18f58808f (patch)
treeb00f4212fb98697eb827c6f64346077359e0f4d7
parent4e454656fea569d5302cbe6d846bd648cb46a1b1 (diff)
downloadvolse-hubzilla-11ccf253e213fbd71916a53220bb05a18f58808f.tar.gz
volse-hubzilla-11ccf253e213fbd71916a53220bb05a18f58808f.tar.bz2
volse-hubzilla-11ccf253e213fbd71916a53220bb05a18f58808f.zip
Heads up: "custom/module.php" is deprecated. Please read this commit if you are affected.
-rwxr-xr-xindex.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3e5207f2b..ae8a2e17d 100755
--- a/index.php
+++ b/index.php
@@ -197,7 +197,19 @@ if(strlen($a->module)) {
*/
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");
$a->module_loaded = true;
}