From 6cc3f5887d7af3ad3b505a6f0fa62752314be1fe Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 20 Apr 2011 13:10:45 +0000 Subject: - Use clisetup.php where possible, remove redundant code --- bin/dumpschema.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/dumpschema.sh') diff --git a/bin/dumpschema.sh b/bin/dumpschema.sh index 2f323ea1c..da1dffa72 100755 --- a/bin/dumpschema.sh +++ b/bin/dumpschema.sh @@ -20,12 +20,9 @@ */ -if (php_sapi_name() != 'cli') { - die('Not on the "shell" (php-cli).'); -} - define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); -require INSTALL_PATH.'program/include/iniset.php'; + +require INSTALL_PATH.'program/include/clisetup.php'; /** callback function for schema dump **/ function print_schema($dump) -- cgit v1.2.3