From 44a18f3e13077138af782f96cffb39294bca6283 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Thu, 24 Dec 2009 21:39:09 +0000 Subject: (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 --- modules/index/index.php | 7 +++---- modules/news/functions.php | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'modules') 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 @@ 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)) diff --git a/modules/news/functions.php b/modules/news/functions.php index 66c8b68..ee4345d 100644 --- a/modules/news/functions.php +++ b/modules/news/functions.php @@ -184,7 +184,7 @@ function displayNews($data){ View Comments: Comments - Posted on: + Posted on: -- cgit