You will need to make the following change to the bottom of pages.php
Code:
# Assign the current location line
$smarty->assign("location", $location);
$smarty->assign("printable", $printable);
You are adding this line
Code:
$smarty->assign("printable", $printable);