Skip to content

Commit

Permalink
pkp/pkp-lib#2178 installNavigationMenus function transfered to lib-pkp
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed Oct 4, 2017
1 parent 47badee commit 713d86f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions classes/install/Upgrade.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2493,23 +2493,6 @@ function moveCSSFiles() {
}
return true;
}

/**
* For 3.1.0 upgrade. DefaultMenus Defaults
*/
function installDefaultNavigationMenus() {
$contextDao = Application::getContextDAO();
$navigationMenuDao = DAORegistry::getDAO('NavigationMenuDAO');

$contexts = $contextDao->getAll();
while ($context = $contexts->next()) {
$navigationMenuDao->installSettings($context->getId(), 'registry/navigationMenus.xml');
}

$navigationMenuDao->installSettings(CONTEXT_ID_NONE, 'registry/navigationMenus.xml');

return true;
}
}

?>

0 comments on commit 713d86f

Please sign in to comment.