Skip to content

Commit

Permalink
Merge branch '44974-27' of git://github.com/samhemelryk/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_27_STABLE
  • Loading branch information
Damyon Wiese committed May 20, 2014
2 parents 41d178f + 043cf8b commit 1d8bebf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions admin/index.php
Expand Up @@ -378,9 +378,6 @@
if (!$PAGE->headerprinted) {
// means core upgrade or installation was not already done

/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');

if (!$confirmplugins) {
$strplugincheck = get_string('plugincheck');

Expand All @@ -398,6 +395,9 @@
redirect($PAGE->url);
}

/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');

$deployer = \core\update\deployer::instance();
if ($deployer->enabled()) {
$deployer->initialize($PAGE->url, $PAGE->url);
Expand All @@ -421,6 +421,8 @@
// Make sure plugin dependencies are always checked.
$failed = array();
if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed)) {
/** @var core_admin_renderer $output */
$output = $PAGE->get_renderer('core', 'admin');
$reloadurl = new moodle_url('/admin/index.php', array('cache' => 0));
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
die();
Expand Down

0 comments on commit 1d8bebf

Please sign in to comment.