diff --git a/contrib/update/main.php b/contrib/update/main.php index 2b6a07d8..8e7b2133 100644 --- a/contrib/update/main.php +++ b/contrib/update/main.php @@ -23,7 +23,7 @@ class Update extends Extension { } public function onAdminBuilding(AdminBuildingEvent $event) { - global $config; + global $config, $page; $latestCommit = $this->get_latest_commit(); if(is_null($latestCommit)) return; @@ -34,7 +34,7 @@ class Update extends Extension { $commitDateTime = $commitDT[0]." (".$commitTD[0].")"; $commitSHA = substr($latestCommit["sha"],0,7); - $html .= "". + $html = "". "Current Commit: ".$config->get_string('commit_hash')." | ".$config->get_string('commit_time'). "
Latest Commit: ".$commitSHA." | ".$commitDateTime." | ".$commitMessage. "
Update".