Fix broken last commit.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan 2011-01-05 22:07:32 +13:00
parent f30c0b84c9
commit cc941a500e

View File

@ -1,6 +1,10 @@
<?php <?php
/** @TODO: work out something more than true/false returns for dependency checks */ /** @TODO: work out something more than true/false returns for dependency checks */
function i18n($value) {
return $value; /* Just pass the value through */
}
class CheckResult { class CheckResult {
private $ok; private $ok;
private $use_class; private $use_class;
@ -91,7 +95,7 @@ function do_error( $errormessage ) {
printf("<p class='error'>%s</p>", $errormessage ); printf("<p class='error'>%s</p>", $errormessage );
} }
if ( !check_gettext()->getOK() ) { do_error("The GNU 'gettext' extension for PHP is not available."); if ( !check_gettext()->getOK() ) do_error("The GNU 'gettext' extension for PHP is not available.");
if ( !check_pgsql()->getOK() ) do_error("PHP 'pgsql' functions are not available"); if ( !check_pgsql()->getOK() ) do_error("PHP 'pgsql' functions are not available");
if ( !check_pdo()->getOK() ) do_error("PHP 'PDO' module is not available"); if ( !check_pdo()->getOK() ) do_error("PHP 'PDO' module is not available");
if ( !check_pdo_pgsql()->getOK() ) do_error("The PDO drivers for PostgreSQL are not available"); if ( !check_pdo_pgsql()->getOK() ) do_error("The PDO drivers for PostgreSQL are not available");