Skip to content

Commit

Permalink
Tweaked getParams() so that default actions in different groups also …
Browse files Browse the repository at this point in the history
…take advantage of the getParams() fix.
  • Loading branch information
volomike committed Nov 5, 2011
1 parent 5880151 commit 38edacb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public function getParams(){
array_shift($asParts);
}

if ("$sGroup/$sAction" == 'Default/Default') {
if ($sAction == 'Default') {
$sScript = @ $_SERVER['SCRIPT_NAME'];
$sRequest = @ $_SERVER['REQUEST_URI'];
$sScript = str_replace('/index.php','',$sScript);
Expand All @@ -578,6 +578,9 @@ public function getParams(){
return array();
}
$asParts = explode('/',$sRequest);
if ($sGroup != 'Default') {
array_shift($asParts);
}
}

$this->_params = $asParts;
Expand Down

0 comments on commit 38edacb

Please sign in to comment.