summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-08 12:36:05 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-08 12:36:05 +0000
commit6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353 (patch)
tree4c32a54f92e3a5a22447c7386da5088260c0b040
parent7962b6cc904cd3eb25893d56d18b9c7daca66f0b (diff)
downloadbrdo-6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353.tar.gz
brdo-6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353.tar.bz2
- Fixed a problem with the variable scopes. Thanks Natrak.
-rw-r--r--modules/comment.module4
-rw-r--r--modules/comment/comment.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 192ea03a8..f18054efd 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1,8 +1,8 @@
<?
// $Id$
-$cmodes = array(1 => "List - min", 2 => "List - max", 3 => "Threaded - min", 4 => "Threaded - max");
-$corder = array(1 => "Date - new", 2 => "Date - old", 3 => "Rate - high", 4 => "Rate - low");
+$GLOBALS["cmodes"] = array(1 => "List - min", 2 => "List - max", 3 => "Threaded - min", 4 => "Threaded - max");
+$GLOBALS["corder"] = array(1 => "Date - new", 2 => "Date - old", 3 => "Rate - high", 4 => "Rate - low");
class Comment {
function Comment($uid, $name, $subject, $comment, $timestamp, $url, $cid, $lid) {
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 192ea03a8..f18054efd 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1,8 +1,8 @@
<?
// $Id$
-$cmodes = array(1 => "List - min", 2 => "List - max", 3 => "Threaded - min", 4 => "Threaded - max");
-$corder = array(1 => "Date - new", 2 => "Date - old", 3 => "Rate - high", 4 => "Rate - low");
+$GLOBALS["cmodes"] = array(1 => "List - min", 2 => "List - max", 3 => "Threaded - min", 4 => "Threaded - max");
+$GLOBALS["corder"] = array(1 => "Date - new", 2 => "Date - old", 3 => "Rate - high", 4 => "Rate - low");
class Comment {
function Comment($uid, $name, $subject, $comment, $timestamp, $url, $cid, $lid) {