Some old lost language constants fixed
[mailer.git] / inc / modules / admin / what-list_surfbar_actions.php
index 8ba7890dd83a744a21e5bd3304d1ad39b7ddacf0..d262671aff549eaa84a9e1136b8b791a59996de2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/12/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 10/12/2008 *
  * ================                             Last change: 10/12/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -59,16 +59,16 @@ if (SQL_NUMROWS($result) > 0) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate" some data
-               $content['status']     = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['status']));
-               $content['action']     = constant(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action']));
+               $content['status']     = translateSurfbarUrlStatus($content['status']);
+               $content['action']     = getMessage(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action']));
 
                // New status set?
                if (!is_null($content['new_status'])) {
                        // Translate it
-                       $content['new_status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['new_status']));
+                       $content['new_status'] = translateSurfbarUrlStatus($content['new_status']);
                } else {
                        // "Do nothing" status
-                       $content['new_status'] = SURFBAR_URL_STATUS_NONE;
+                       $content['new_status'] = getMessage('SURFBAR_URL_STATUS_NONE');
                }
 
                // Add color