diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-16 13:26:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-16 13:26:38 +0000 |
commit | 53c67ac0a2dc6162fa879176cc50748026692e9b (patch) | |
tree | 57dd5048e28959ca8cd3df3f17fd635e0c9ab65b | |
parent | 657c3bb2098c2ce7502d6feeaa754518e857bdef (diff) | |
download | brdo-53c67ac0a2dc6162fa879176cc50748026692e9b.tar.gz brdo-53c67ac0a2dc6162fa879176cc50748026692e9b.tar.bz2 |
- a few changes which might help overcome Jeroen's redeclartion problem
(or might not)
-rw-r--r-- | includes/common.inc | 1 | ||||
-rw-r--r-- | modules/story.module | 4 | ||||
-rw-r--r-- | modules/story/story.module | 4 | ||||
-rw-r--r-- | modules/structure.module | 3 |
4 files changed, 3 insertions, 9 deletions
diff --git a/includes/common.inc b/includes/common.inc index 5c10bb5aa..2d0d9e324 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -32,6 +32,7 @@ function throttle($type, $rate) { $conf = conf_init(); include_once "includes/$conf.conf"; +include_once "includes/structure.inc"; include_once "includes/database.inc"; include_once "includes/variable.inc"; include_once "includes/function.inc"; diff --git a/modules/story.module b/modules/story.module index 4667494fe..feb65cc32 100644 --- a/modules/story.module +++ b/modules/story.module @@ -8,8 +8,6 @@ $module = array("help" => "story_help", "admin" => "story_admin", "block" => "story_block"); -include_once "includes/structure.inc"; - class Story { function Story($story) { global $user; @@ -191,7 +189,7 @@ function story_block() { function story_query($type = "") { global $status; - $queries = array(array("recent stories", "WHERE n.type = 'story' ORDER BY n.timestamp DESC"), array("posted stories", "WHERE n.type = 'story' AND n.status = '$status[posted]' ORDER BY n.timestamp DESC"), array("queued stories", "WHERE n.type = 'story' AND n.status = '$status[queued]' ORDER BY n.timestamp DESC"), array("dumped stories", "WHERE n.type = 'story' AND n.status = '$status[dumped]' ORDER BY n.timestamp DESC"), array("stories without category (integrity)", "WHERE n.cid = '0' ORDER BY n.timestamp DESC"), array("stories without topic (integrity)", "WHERE n.tid = '0' ORDER BY n.timestamp DESC")); + $queries = array(array("recent stories", "WHERE n.type = 'story' ORDER BY n.timestamp DESC"), array("posted stories", "WHERE n.type = 'story' AND n.status = '$status[posted]' ORDER BY n.timestamp DESC"), array("queued stories", "WHERE n.type = 'story' AND n.status = '$status[queued]' ORDER BY n.timestamp DESC"), array("dumped stories", "WHERE n.type = 'story' AND n.status = '$status[dumped]' ORDER BY n.timestamp DESC"), array("stories without category (integrity)", "WHERE n.type = 'story' AND n.cid = '0' ORDER BY n.timestamp DESC"), array("stories without topic (integrity)", "WHERE n.type = 'story' AND n.tid = '0' ORDER BY n.timestamp DESC")); return ($queries[$type] ? $queries[$type] : $queries); } diff --git a/modules/story/story.module b/modules/story/story.module index 4667494fe..feb65cc32 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -8,8 +8,6 @@ $module = array("help" => "story_help", "admin" => "story_admin", "block" => "story_block"); -include_once "includes/structure.inc"; - class Story { function Story($story) { global $user; @@ -191,7 +189,7 @@ function story_block() { function story_query($type = "") { global $status; - $queries = array(array("recent stories", "WHERE n.type = 'story' ORDER BY n.timestamp DESC"), array("posted stories", "WHERE n.type = 'story' AND n.status = '$status[posted]' ORDER BY n.timestamp DESC"), array("queued stories", "WHERE n.type = 'story' AND n.status = '$status[queued]' ORDER BY n.timestamp DESC"), array("dumped stories", "WHERE n.type = 'story' AND n.status = '$status[dumped]' ORDER BY n.timestamp DESC"), array("stories without category (integrity)", "WHERE n.cid = '0' ORDER BY n.timestamp DESC"), array("stories without topic (integrity)", "WHERE n.tid = '0' ORDER BY n.timestamp DESC")); + $queries = array(array("recent stories", "WHERE n.type = 'story' ORDER BY n.timestamp DESC"), array("posted stories", "WHERE n.type = 'story' AND n.status = '$status[posted]' ORDER BY n.timestamp DESC"), array("queued stories", "WHERE n.type = 'story' AND n.status = '$status[queued]' ORDER BY n.timestamp DESC"), array("dumped stories", "WHERE n.type = 'story' AND n.status = '$status[dumped]' ORDER BY n.timestamp DESC"), array("stories without category (integrity)", "WHERE n.type = 'story' AND n.cid = '0' ORDER BY n.timestamp DESC"), array("stories without topic (integrity)", "WHERE n.type = 'story' AND n.tid = '0' ORDER BY n.timestamp DESC")); return ($queries[$type] ? $queries[$type] : $queries); } diff --git a/modules/structure.module b/modules/structure.module index db4e13ea2..35e7cbf5a 100644 --- a/modules/structure.module +++ b/modules/structure.module @@ -5,9 +5,6 @@ $module = array("admin" => "structure_admin"); $cstatus = array("disabled", "enabled: incl. anonymous", "enabled: excl. anonymous"); $mstatus = array("post new submissions", "moderate new submissions"); -include "includes/structure.inc"; - - function content_types($name, $module) { global $types; if ($module[type]) $types[$name] = $name; |