fixed "last" constant
authorniekt0 <niekt0@kyberia.cz>
Tue, 21 Jun 2011 17:36:15 +0000 (19:36 +0200)
committerniekt0 <niekt0@kyberia.cz>
Tue, 21 Jun 2011 17:36:15 +0000 (19:36 +0200)
wwwroot/inc/smarty/node_methodz/function.get_last.php

index 85a016a8693e3636a2ab2c58c0c6f4d9bd63f032..cc29ea54f105101911e56143f1a12b63ae63f262 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 
+# XXX remove constants and move to backend
        function smarty_function_get_last($params,&$smarty) {
 
                if ($params['listing_amount']=='all') $listing_amount='-1';
@@ -10,7 +11,7 @@
                global $db,$node;
 
                if ($node['node_id']==23)  {
-                       $interval=" nodes.node_created>NOW()-INTERVAL 23 HOUR and";
+                       $interval=" nodes.node_created>NOW()-INTERVAL 65 HOUR and";
                        $params['vector']="00";
                }
 
@@ -32,4 +33,4 @@
                $smarty->assign('get_last',$pole);
 
        }
-?>
\ No newline at end of file
+?>
This page took 0.199898 seconds and 4 git commands to generate.