]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-rallyes.php
Used EL code {%template,LoadTemplate=foo%} instead of loadTemplate('foo', TRUE);
[mailer.git] / inc / modules / guest / what-rallyes.php
index 43afabe64ddebad8cc450c4595834e51f45a3a64..bb0448e6ba67fce928cc2bed67b842a77899a91e 100644 (file)
@@ -101,19 +101,13 @@ if (SQL_NUMROWS($result) == 1) {
        // Handle description...
        if ((empty($content['descr'])) && (!empty($content['template']))) {
                // Use description from template
-               $content['descr'] = loadTemplate('rallye_' . $content['template'], TRUE);
+               $content['descr'] = '{%template,LoadTemplate=rallye_' . $content['template'] . '%}';
        } // END - if
 
        // Set start and end time
        $content['start_time'] = generateDateTime($content['start_time'], 1);
        $content['end_time']   = generateDateTime($content['end_time']  , 1);
 
-       // Determine min_users
-       $content['min_users'] = determineReferralRallyeMinimumUsers($content['min_users']);
-
-       // Determine min prices (now in function)
-       $content['min_prices'] = determineReferralRallyeMinimumPrices($content['min_prices']);
-
        if ($expired === TRUE) {
                $content['prices']       = addReferralRallyeWinners('guest', $content['id']);
                $content['top_users']    = '<div align="center" class="big">' . $content['extras'] . '</div>';