added prevention to override page_number mask
This commit is contained in:
parent
a9ca7044bb
commit
82379e6dc3
1 changed files with 6 additions and 4 deletions
|
@ -272,10 +272,12 @@ class Doctrine_Pager_Layout
|
|||
*/
|
||||
public function addMaskReplacement($oldMask, $newMask, $asValue = false)
|
||||
{
|
||||
$this->_maskReplacements[$oldMask] = array(
|
||||
'newMask' => $newMask,
|
||||
'asValue' => ($asValue === false) ? false : true
|
||||
);
|
||||
if (($oldMask = trim($oldMask)) != 'page_number') {
|
||||
$this->_maskReplacements[$oldMask] = array(
|
||||
'newMask' => $newMask,
|
||||
'asValue' => ($asValue === false) ? false : true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue