From 78def0485b8acc2e4297b2d60e70c0fb7e8f109f Mon Sep 17 00:00:00 2001 From: natrak <> Date: Mon, 23 Apr 2001 11:06:17 +0000 Subject: Changes - Fixed an error in module_rehash_blocks() that didn't handle '-symbols. - Removed some module depencies. Drupal will now run (sorta) even if there are no modules installed. - Changed theme_link() to check if certain modules are installed before offering a link to them. Todo - Check all SQL queries to make sure they are addslashes'ed correctly. - Check the effects of changing the PHP magic_quotes setting. - Make the theme_link() function to be customizable either via the admin page and/or in the module itself. --- modules/box.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/box.module') diff --git a/modules/box.module b/modules/box.module index bfd8b3d3c..789185cc5 100644 --- a/modules/box.module +++ b/modules/box.module @@ -35,7 +35,7 @@ function box_help() { } function box_block() { - $result = db_query("SELECT * FROM boxes"); + $result = db_query("SELECT * FROM boxes ORDER BY subject"); $i = 0; while ($block = db_fetch_object($result)) { $blocks[$i]["subject"] = check_output($block->subject); @@ -44,7 +44,6 @@ function box_block() { $blocks[$i]["link"] = check_output($block->link); $i++; } - return $blocks; } -- cgit v1.2.3