From: Mikael Nordfeldth Date: Sun, 9 Mar 2014 21:11:08 +0000 (+0100) Subject: Don't add redundant includedir INSTALLDIR.'/extlib/' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31d8069779357fbcadcaf6a0852980160131f0a4;p=quix0rs-gnu-social.git Don't add redundant includedir INSTALLDIR.'/extlib/' --- diff --git a/scripts/commandline.inc b/scripts/commandline.inc index d7ee158801..2bf1f0fc36 100644 --- a/scripts/commandline.inc +++ b/scripts/commandline.inc @@ -36,13 +36,7 @@ ini_set("max_input_time", "0"); set_time_limit(0); mb_internal_encoding('UTF-8'); -// Add extlib to our path so we can get Console_Getopt - -$_extra_path = array(INSTALLDIR.'/extlib/'); - -set_include_path(implode(PATH_SEPARATOR, $_extra_path) . PATH_SEPARATOR . get_include_path()); - -require_once 'Console/Getopt.php'; +require_once INSTALLDIR . '/extlib/Console/Getopt.php'; // Note: $shortoptions and $longoptions should be pre-defined!