Repaired menu getter in BasePage.php