aboutsummaryrefslogtreecommitdiff
path: root/modules/index/index.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-24 16:39:09 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-24 16:39:09 -0500
commit44a18f3e13077138af782f96cffb39294bca6283 (patch)
treeb273725cb63b4eb54725953997a3496a3e552bfe /modules/index/index.php
parentc2f9018513eb8d61721382a18055bcded2ca7551 (diff)
downloadbayonetcms-44a18f3e13077138af782f96cffb39294bca6283.tar.gz
(OC) fixed some display stuff for the debug console
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@398 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules/index/index.php')
-rw-r--r--modules/index/index.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/index/index.php b/modules/index/index.php
index fd1eef1..b7554b7 100644
--- a/modules/index/index.php
+++ b/modules/index/index.php
@@ -11,14 +11,13 @@
<?php
- $result = $db->Query("SELECT `index_modules` FROM `bayonet_settings` WHERE `title` = 'Default'");
+
+ $result = $db->Query("SELECT `dir_name` FROM `bayonet_modules` ORDER BY `weight` ASC");
while(($row = $db->Fetch($result))!==false)
{
- $indexModules = $row['index_modules'];
+ $indexModules[] = $row['dir_name'];
}
- $indexModules = explode(',',$indexModules);
-
foreach($indexModules as $module)
{
if(file_exists("modules/" . $module))