Commit 82379e6d authored by guilhermeblanco's avatar guilhermeblanco

added prevention to override page_number mask

parent a9ca7044
......@@ -272,11 +272,13 @@ class Doctrine_Pager_Layout
*/
public function addMaskReplacement($oldMask, $newMask, $asValue = false)
{
if (($oldMask = trim($oldMask)) != 'page_number') {
$this->_maskReplacements[$oldMask] = array(
'newMask' => $newMask,
'asValue' => ($asValue === false) ? false : true
);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment