aboutsummaryrefslogtreecommitdiff
path: root/modules.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-23 17:27:27 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-23 17:27:27 -0500
commitb46318283ca6016f07e3e419f778dd69081ad660 (patch)
treef2f19b2bf158ca4232a87989fde5d54707866f98 /modules.php
parentebda82d787b3620424c1dcf4336146ea06815a55 (diff)
downloadbayonetcms-b46318283ca6016f07e3e419f778dd69081ad660.tar.gz
More debugging related code has been added.
Modules and block now report when they have loaded. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@396 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules.php')
-rw-r--r--modules.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.php b/modules.php
index 9cd6350..c35a351 100644
--- a/modules.php
+++ b/modules.php
@@ -70,6 +70,7 @@ if(isset($load) && !empty($load) && !isset($file))
if(file_exists("modules/" . $load))
{
include 'modules/' . $load . '/index.php';
+ decho("'$load' module loaded");
}
else
{
@@ -86,8 +87,9 @@ elseif(isset($load) && isset($file))
$run = "modules/" . $load . "/" . $file;
if(file_exists($run))
- {
- include $run;
+ {
+ include $run;
+ decho("Loaded '$file' file from $load module");
}
else
{