cvs: pear /PEAR_PackageFileManager_Frontend_Web/Frontend Web.php

From: Date: Sun, 21 May 2006 09:31:51 +0000
Subject: cvs: pear /PEAR_PackageFileManager_Frontend_Web/Frontend Web.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40250@lists.php.net to get a copy of this message
farell Sun May 21 09:31:51 2006 UTC Modified files: /pear/PEAR_PackageFileManager_Frontend_Web/Frontend Web.php Log: fixes for addActions() with custom parameters http://cvs.php.net/viewcvs.cgi/pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php?r1=1.3&r2=1.4&diff_format=u Index: pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php diff -u pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php:1.3 pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php:1.4 --- pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php:1.3 Sat May 20 18:53:30 2006 +++ pear/PEAR_PackageFileManager_Frontend_Web/Frontend/Web.php Sun May 21 09:31:51 2006 @@ -15,7 +15,7 @@ * @author Laurent Laville <pear@laurent-laville.org> * @copyright 2005-2006 Laurent Laville * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: Web.php,v 1.3 2006/05/20 18:53:30 farell Exp $ + * @version CVS: $Id: Web.php,v 1.4 2006/05/21 09:31:51 farell Exp $ * @since File available since Release 0.1.0 */ @@ -242,9 +242,8 @@ */ function addActions($actions = null) { - if (!isset($actions)) { - // default wizard controller actions - $actions = $this->_actions; + if (isset($actions) && is_array($actions)) { + $this->_actions = array_merge($this->_actions, $actions); } // adds display driver

« previous php.pear.cvs (#40250) next »