diff --git a/include/common.inc.php b/include/common.inc.php index 2c9364d38..35b6dd187 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -111,7 +111,7 @@ $conf = array(); $page = array(); $user = array(); $lang = array(); - +$warnings = array(); @include(PHPWG_ROOT_PATH .'include/mysql.inc.php'); if (!defined('PHPWG_INSTALLED')) @@ -147,14 +147,8 @@ SELECT id // which upgrades need to be applied? if (count(array_diff($existing, $applied)) > 0) { - ob_start();// buffer output so that cookies work - - echo - '
' - .'Some database upgrades are missing, ' - .'upgrade now' - .'
' - ; + $warnings[] = 'Some database upgrades are missing, ' + .'upgrade now'; } } @@ -176,12 +170,8 @@ if (defined('IN_ADMIN') and IN_ADMIN) if ($conf['gallery_locked']) { - ob_start(); // make sure we can send cookies - echo - '