From 95c4d809a97128f040c9ab9c42f47d82e804d7a4 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 14 Mar 2012 20:40:03 +0000 Subject: [PATCH] ... missed two globals >_> --- contrib/update/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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".