com web/pecl: do *not* use static value for config elements: include/pear-prepend.php

From: Date: Wed, 08 Apr 2015 05:57:35 +0000
Subject: com web/pecl: do *not* use static value for config elements: include/pear-prepend.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-22036@lists.php.net to get a copy of this message
Commit: 73fb6697c76ee0fa6fc15d7f2de6f31c4a6582b5 Author: Pierre Joye <pierre.php@gmail.com> Wed, 8 Apr 2015 07:57:35 +0200 Parents: 87d4b0e45fcfa1e58ec970241c9b04f5cf49b531 Branches: master Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=73fb6697c76ee0fa6fc15d7f2de6f31c4a6582b5 Log: do *not* use static value for config elements Changed paths: M include/pear-prepend.php Diff: diff --git a/include/pear-prepend.php b/include/pear-prepend.php index 1ca64aa..5501e82 100644 --- a/include/pear-prepend.php +++ b/include/pear-prepend.php @@ -59,7 +59,7 @@ if (empty($dbh)) { } if (!isset($pear_rest)) { if (!DEVBOX) { - $pear_rest = new pear_rest('/var/lib/peclweb/rest'); + $pear_rest = new pear_rest(PEAR_REST_DIR); } else { $pear_rest = new pear_rest(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'public_html' . DIRECTORY_SEPARATOR . 'rest');

« previous php.pecl.cvs (#22036) next »