Author: dr Date: Mon Mar 3 13:50:23 2008 New Revision: 7481 Log: - This was giving a warning on passing a non-variable by reference.
Modified: trunk/Tree/src/visitors/xhtml.php trunk/Tree/src/visitors/yui.php Modified: trunk/Tree/src/visitors/xhtml.php ============================================================================== --- trunk/Tree/src/visitors/xhtml.php [iso-8859-1] (original) +++ trunk/Tree/src/visitors/xhtml.php [iso-8859-1] Mon Mar 3 13:50:23 2008 @@ -165,7 +165,8 @@ } if ( $this->options->selectedNodeLink ) { - $path = htmlspecialchars( $this->options->basePath . '/' . array_pop( array_slice( $path, -1 ) ) ); + $slice = array_slice( $path, -1 ); + $path = htmlspecialchars( $this->options->basePath . '/' . array_pop( $slice ) ); } else { Modified: trunk/Tree/src/visitors/yui.php ============================================================================== --- trunk/Tree/src/visitors/yui.php [iso-8859-1] (original) +++ trunk/Tree/src/visitors/yui.php [iso-8859-1] Mon Mar 3 13:50:23 2008 @@ -177,7 +177,8 @@ } if ( $this->options->selectedNodeLink ) { - $path = htmlspecialchars( $this->options->basePath . '/' . array_pop( array_slice( $path, -1 ) ), ENT_QUOTES ); + $slice = array_slice( $path, -1 ); + $path = htmlspecialchars( $this->options->basePath . '/' . array_pop( $slice ), ENT_QUOTES ); } else { -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components