]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
Status codes rewritten to GLOBALS
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 4446302f5190a711fd93fa163fc05c14c56f87ac..12c82521bf205efd5574a1062637e54caf7d56f4 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -76,7 +76,7 @@ if (isInstalled()) {
                                        array(REQUEST_GET('uid')), __FILE__, __LINE__);
                        } else {
                                // Nickname entered but nickname is not active
-                               $msg = constant('CODE_EXTENSION_PROBLEM');
+                               $msg = getCode('EXTENSION_PROBLEM');
                                $uid = -1;
                        }
                } else {
@@ -215,17 +215,17 @@ if (isInstalled()) {
                                array(REQUEST_GET('uid')), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Locked account
-                               $msg = constant('CODE_ACCOUNT_LOCKED');
+                               $msg = getCode('ACCOUNT_LOCKED');
                        } else {
                                // Invalid nickname! (404)
-                               $msg = constant('CODE_USER_404');
+                               $msg = getCode('USER_404');
                        }
 
                        // Free memory
                        SQL_FREERESULT($result);
                } elseif ($uid == getConfig('beg_uid')) {
                        // Webmaster's ID cannot beg for points!
-                       $msg = constant('CODE_BEG_SAME_AS_OWN');
+                       $msg = getCode('BEG_SAME_AS_OWN');
                }
 
                // Reload to index module