diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-24 16:39:09 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-24 16:39:09 -0500 |
commit | 44a18f3e13077138af782f96cffb39294bca6283 (patch) | |
tree | b273725cb63b4eb54725953997a3496a3e552bfe /modules | |
parent | c2f9018513eb8d61721382a18055bcded2ca7551 (diff) | |
download | bayonetcms-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')
-rw-r--r-- | modules/index/index.php | 7 | ||||
-rw-r--r-- | modules/news/functions.php | 2 |
2 files changed, 4 insertions, 5 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)) 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){ <td style="text-align:left;"> View Comments: <a href="?load=news&id=<?php echo $news['news_id']; ?>"><?php echo $numComments;?> Comments</a> </td> - <td style="text-align:right;">Posted on: <?php echo date('D M j, Y H:i a T', strtotime($news['date'])); ?></td> + <td style="text-align:right;">Posted on: <?php echo date('D M j, Y g:i a T', strtotime($news['date'])); ?></td> </tr> </table> </div> |