]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-active.php
HTML->XHTML preparation (still *A LOT* to convert
[mailer.git] / inc / modules / guest / what-active.php
index 69a16d1de0f8fcc8473ed2dd6fe57afc7fecd248..724810e1dbbb981ea2f3e436f89566e8e0e586e5 100644 (file)
@@ -36,7 +36,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("active")) && (!IS_ADMIN())) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "active");
+       addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "active");
        return;
 }
 
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 ADD_DESCR("guest", __FILE__);
 
 // Extra field to include is by default uid
-$ADD = "uid";
+$ADD = "userid";
 
 // If nickname is installed the extra field is the nickname of the user
 if (EXT_IS_ACTIVE("nickname")) $ADD = "nickname";
@@ -54,7 +54,7 @@ $result = SQL_QUERY_ESC("SELECT userid, ".$ADD.", last_online
 FROM "._MYSQL_PREFIX."_user_data
 WHERE last_online >= %s AND status='CONFIRMED'
 ORDER BY last_online DESC LIMIT %s",
-       array(START_TDAY, $_CONFIG['active_limit']), __FILE__, __LINE__);
+       array(START_TDAY, getConfig('active_limit')), __FILE__, __LINE__);
 
 // Entries found?
 if (SQL_NUMROWS($result) > 0) {