Updating Router::parseExtensions() so that parameters do not need to be wrapped in an array

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4429 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-02-03 21:47:38 +00:00
parent fede6a410f
commit c98de6fe7f

View file

@ -699,13 +699,18 @@ class Router extends Overloadable {
* An array of valid extension can be passed to this method. $extensions = array('rss', 'xml')
* If null is passed anything after a . in the url will be considered an extension
*
* @param mixed $extensions
* @param string $ext
* @param string $ext
* @param string $ext
* @param string ...
* @return void
*/
function parseExtensions($extensions = null) {
function parseExtensions() {
$_this =& Router::getInstance();
$_this->__parseExtensions = true;
$_this->__validExtensions = $extensions;
if (func_num_args() > 0) {
$_this->__validExtensions = func_get_args();
}
}
}