1
0
mirror of synced 2024-12-13 06:46:03 +03:00

added prevention to override page_number mask

This commit is contained in:
guilhermeblanco 2007-12-22 19:04:18 +00:00
parent a9ca7044bb
commit 82379e6dc3

View File

@ -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
);
}
}