Regression introduced in #394
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* @param bool $enableCheck whether to check for new versions
* @param bool $isLoggedIn whether the user is logged in
*
+ * @throws Exception an invalid branch has been set for update checks
+ *
* @return mixed the new version code if available and greater, else 'false'
*/
public static function checkUpdate($currentVersion,
$GLOBALS['config']['UPDATECHECK_BRANCH']
);
$this->tpl->assign('newVersion', escape($version));
+ $this->tpl->assign('versionError', '');
} catch (Exception $exc) {
logm($exc->getMessage());
+ $this->tpl->assign('newVersion', '');
$this->tpl->assign('versionError', escape($exc->getMessage()));
}