diff options
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> |