diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-10-04 21:47:20 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-10-04 21:47:20 +0000 |
commit | 45e1aa45c749a14b29f63f96971a984cd1c81578 (patch) | |
tree | cc659d42cfa78788f1911ad62b10cbaf6d5ef5ab /phpBB/includes/functions_module.php | |
parent | 1981196e99a84e1ad1f8e817f74bda730ba6fe88 (diff) | |
download | forums-45e1aa45c749a14b29f63f96971a984cd1c81578.tar forums-45e1aa45c749a14b29f63f96971a984cd1c81578.tar.gz forums-45e1aa45c749a14b29f63f96971a984cd1c81578.tar.bz2 forums-45e1aa45c749a14b29f63f96971a984cd1c81578.tar.xz forums-45e1aa45c749a14b29f63f96971a984cd1c81578.zip |
dumdidum
git-svn-id: file:///svn/phpbb/trunk@5257 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r-- | phpBB/includes/functions_module.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index d3c2a9bf9e..78b6ea04c8 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -52,19 +52,20 @@ class p_master // Sanitise for future path use, it's escaped as appropriate for queries $this->p_class = str_replace(array('.', '/', '\\'), '', basename($p_class)); - $sql_and = ''; if (file_exists($phpbb_root_path . 'cache/' . $this->p_class . '_modules.' . $phpEx)) { include($phpbb_root_path . 'cache/' . $this->p_class . '_modules.' . $phpEx); } + /** + * @todo cache, see above. ;) + */ $sql = 'SELECT * FROM ' . MODULES_TABLE . " WHERE module_class = '" . $db->sql_escape($p_class) . "' AND module_enabled = 1 - $sql_and ORDER BY left_id ASC"; - $result = $db->sql_query($sql); + $result = $db->sql_query($sql, 3600); $right = $depth = $i = 0; $depth_ary = array(); |