]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-surfbar_list.php
More EL used, this has fixed double calls of translateComma() in various places
[mailer.git] / inc / modules / member / what-surfbar_list.php
index 14a3ed991f31db834ece4760afb87af93c09de5a..0f1c81eaa67a8f9e46d58c9474e147c17a343a5a 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -56,7 +54,7 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
 $urlArray = SURFBAR_GET_USER_URLS();
 
 // Are there entries or form is submitted?
-if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestParameterSet('id'))) {
+if ((isFormSent()) && (isPostRequestParameterSet('action')) && (isPostRequestParameterSet('id'))) {
        // Process the form
        if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $urlArray)) {
                // Action performed but shall we display it?
@@ -70,27 +68,19 @@ if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestP
        }
 } elseif (count($urlArray) > 0) {
        // List all URLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach ($urlArray as $id => $content) {
                // "Translate"/insert data
-               $content['sw'] = $SW;
                if ($content['views_total'] > 0) {
                        // Include link to stats
-                       $content['views_total'] = '[<a href="{%url=modules.php?module=login&amp;what=surfbar_list%}">' . translateComma($content['views_total']) . '</a>]';
+                       $content['views_total'] = '[<a href="{%url=modules.php?module=login&amp;what=surfbar_list%}">{%pipe,translateComma=' . $content['views_total'] . '%}</a>]';
                } // END - if
                $content['url_registered']  = generateDateTime($content['url_registered'], 2);
                $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
                $content['actions']         = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']);
-               if (empty($content['url_lock_reason'])) {
-                       // Fixes some HTML problems with empty cells
-                       $content['url_lock_reason'] = '---';
-               } // END - if
 
                // Load row template
                $OUT .= loadTemplate('member_surfbar_list_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - if
 
        // Load main template