mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
fede6a410f
commit
c98de6fe7f
1 changed files with 8 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue