]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-rallyes.php
Our convention says if(-else) blocks should not be put in one line
[mailer.git] / inc / modules / guest / what-rallyes.php
index ce0cc7a134996f05b655368b652d3b4e23b48345..f712818c3363880d52b68b848a69e9e9cd34d431 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -77,11 +78,11 @@ if (SQL_NUMROWS($result) == 1) {
        $expired = false;
        if ($end < time()) {
                // Rallye is expired
-               $content['extras'] = getMessage('RALLYE_HAS_EXPIRED');
+               $content['extras'] = '{--RALLYE_HAS_EXPIRED--}';
                $expired = true;
        } elseif (time() >= ($end - getConfig('ONE_DAY'))) {
                // Rallye will expire in less one day!
-               $content['extras'] = getMessage('RALLYE_EXPIRE_ONE_DAY');
+               $content['extras'] = '{--RALLYE_EXPIRE_ONE_DAY--}';
        } else {
                $content['extras'] = '<a href="{%url=modules.php?module=index&amp;what=register%}">{--RALLYE_REGISTER_NOW--}</a>';
        }
@@ -114,11 +115,11 @@ if (SQL_NUMROWS($result) == 1) {
        if ($expired === true) {
                $content['prices']       = addReferalRallyeWinners($id);
                $content['top_users']    = '<div align="center" class="big">' . $content['extras'] . '</div>';
-               $content['can_win_this'] = getMessage('RALLYE_OUR_WINNERS_ARE');
+               $content['can_win_this'] = '{--RALLYE_OUR_WINNERS_ARE--}';
        } else {
                $content['prices']       = addReferalRallyePrices($id, 'html');
                $content['top_users']    = addReferalRallyeTopUsers($id, getMemberId());
-               $content['can_win_this'] = getMessage('RALLYE_YOU_CAN_WIN');
+               $content['can_win_this'] = '{--RALLYE_YOU_CAN_WIN--}';
        }
 
        // And load final template