Some old lost language constants fixed
[mailer.git] / inc / modules / admin / what-list_surfbar_actions.php
index 184ac2a..d262671 100644 (file)
@@ -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