added prevention to override page_number mask
This commit is contained in:
parent
a9ca7044bb
commit
82379e6dc3
@ -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…
Reference in New Issue
Block a user