[limb-svn] r6054 - in 3.x/trunk/limb/cms: src/model tests/cases/fetcher

svn at limb-project.com svn at limb-project.com
Tue Jul 3 14:50:44 MSD 2007


Author: pachanga
Date: 2007-07-03 14:50:44 +0400 (Tue, 03 Jul 2007)
New Revision: 6054
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6054

Modified:
   3.x/trunk/limb/cms/src/model/lmbCmsNode.class.php
   3.x/trunk/limb/cms/tests/cases/fetcher/lmbCmsNodeBreadcrumbsFetcherTest.class.php
Log:
-- quick fix making tests pass

Modified: 3.x/trunk/limb/cms/src/model/lmbCmsNode.class.php
===================================================================
--- 3.x/trunk/limb/cms/src/model/lmbCmsNode.class.php	2007-07-03 10:49:06 UTC (rev 6053)
+++ 3.x/trunk/limb/cms/src/model/lmbCmsNode.class.php	2007-07-03 10:50:44 UTC (rev 6054)
@@ -166,7 +166,7 @@
   function getRelativeUrlPath()
   {
     if(isset($this->url_path))
-      return $this->url_path;
+      return ltrim($this->url_path, '/');
 
     if(!($parent_path = $this->_tree->getPathToNode($this->getId())))
       $this->url_path = $this->getIdentifier();

Modified: 3.x/trunk/limb/cms/tests/cases/fetcher/lmbCmsNodeBreadcrumbsFetcherTest.class.php
===================================================================
--- 3.x/trunk/limb/cms/tests/cases/fetcher/lmbCmsNodeBreadcrumbsFetcherTest.class.php	2007-07-03 10:49:06 UTC (rev 6053)
+++ 3.x/trunk/limb/cms/tests/cases/fetcher/lmbCmsNodeBreadcrumbsFetcherTest.class.php	2007-07-03 10:50:44 UTC (rev 6054)
@@ -1,10 +1,10 @@
 <?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com 
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
  */
 lmb_require('limb/cms/src/fetcher/lmbCmsNodeBreadcrumbsFetcher.class.php');
 



More information about the limb-svn mailing list