[limb-svn] r7039 - 3.x/trunk/limb/macro/src/tags/pager
svn at limb-project.com
svn at limb-project.com
Fri May 23 11:23:46 MSD 2008
Author: serega
Date: 2008-05-23 11:23:46 +0400 (Fri, 23 May 2008)
New Revision: 7039
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7039
Modified:
3.x/trunk/limb/macro/src/tags/pager/first_disabled.tag.php
3.x/trunk/limb/macro/src/tags/pager/last_disabled.tag.php
Log:
-- minor changes in {{pager:first:disabled}}, {{pager:last:disabled}} tags. Now they generate $href variable as well
Modified: 3.x/trunk/limb/macro/src/tags/pager/first_disabled.tag.php
===================================================================
--- 3.x/trunk/limb/macro/src/tags/pager/first_disabled.tag.php 2008-05-22 14:10:59 UTC (rev 7038)
+++ 3.x/trunk/limb/macro/src/tags/pager/first_disabled.tag.php 2008-05-23 07:23:46 UTC (rev 7039)
@@ -21,6 +21,7 @@
$pager = $this->findParentByClass('lmbMacroPagerTag')->getRuntimeVar();
$code->writePhp("if ({$pager}->isFirst()) {\n");
+ $code->writePhp("\$href = {$pager}->getFirstPageUri();\n");
parent :: _generateContent($code);
Modified: 3.x/trunk/limb/macro/src/tags/pager/last_disabled.tag.php
===================================================================
--- 3.x/trunk/limb/macro/src/tags/pager/last_disabled.tag.php 2008-05-22 14:10:59 UTC (rev 7038)
+++ 3.x/trunk/limb/macro/src/tags/pager/last_disabled.tag.php 2008-05-23 07:23:46 UTC (rev 7039)
@@ -21,6 +21,7 @@
$pager = $this->findParentByClass('lmbMacroPagerTag')->getRuntimeVar();
$code->writePhp("if ({$pager}->isLast()) {\n");
+ $code->writePhp("\$href = {$pager}->getLastPageUri();\n");
parent :: _generateContent($code);
More information about the limb-svn
mailing list