Used EL code {%template,LoadTemplate=foo%} instead of loadTemplate('foo', TRUE);
[mailer.git] / inc / modules / admin / admin-inc.php
index 8be13d2e1652d116158aa7125d7a0872524d4fb8..5d655b2f74b4fac3935630f250db0f6b54d4a08f 100644 (file)
@@ -1396,14 +1396,14 @@ function doVerifyExpertSettings () {
 }
 
 // Generate link to unconfirmed mails for admin
-function generateUnconfirmedAdminLink ($id, $unconfirmed, $type = 'bid') {
+function generateUnconfirmedAdminLink ($id, $unconfirmed, $type) {
        // Init output
        $OUT = $unconfirmed;
 
        // Is there unconfirmed mails?
        if ($unconfirmed > 0) {
                // Add link to list_unconfirmed what-file
-               $OUT = '<a href="{%url=modules.php?module=admin&amp;what=list_unconfirmed&amp;' . $type . '=' . $id . '%}">{%pipe,translateComma=' . $unconfirmed . '%}</a>';
+               $OUT = '<a href="{%url=modules.php?module=admin&amp;what=list_unconfirmed&amp;type=' . $type . '&amp;id=' . $id . '%}">{%pipe,translateComma=' . $unconfirmed . '%}</a>';
        } // END - if
 
        // Return it
@@ -1722,10 +1722,10 @@ function registerFirstAdmin () {
                        } // END - if
 
                        // Output error messages
-                       $content['login_message'] = loadTemplate('admin_login_msg', TRUE, $loginMessage);
+                       $content['login_message']     = loadTemplate('admin_login_msg', TRUE, $loginMessage);
                        $content['password1_message'] = loadTemplate('admin_login_msg', TRUE, $password1Message);
                        $content['password2_message'] = loadTemplate('admin_login_msg', TRUE, $password2Message);
-                       $content['error_message'] = loadTemplate('admin_login_msg', TRUE, $errorMessage);
+                       $content['error_message']     = loadTemplate('admin_login_msg', TRUE, $errorMessage);
                } // END - if
 
                // Output message in seperate template