com web/pecl: do not use static data for config values, this script needs fixes, broken right now (anyone can take this task?): g eneratePECL_REST.php
| From: | Pierre Joye | Date: | Wed, 08 Apr 2015 06:22:09 +0000 |
| Subject: | com web/pecl: do not use static data for config values, this script needs fixes, broken right now (anyone can take this task?): g eneratePECL_REST.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-22037@lists.php.net to get a copy of this message | ||
Commit: a13fa909277cbf118f9d56d8652f77f6981bb193
Author: Pierre Joye <pierre.php@gmail.com> Wed, 8 Apr 2015 08:22:09 +0200
Parents: 38ca0cc4b4f7cff95740ff0976dfc74b9e4dd94c
Branches: master
Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=a13fa909277cbf118f9d56d8652f77f6981bb193
Log:
do not use static data for config values, this script needs fixes, broken right now (anyone can take
this task?)
Changed paths:
M generatePECL_REST.php
Diff:
diff --git a/generatePECL_REST.php b/generatePECL_REST.php
index c373ce0..fbcb3fc 100644
--- a/generatePECL_REST.php
+++ b/generatePECL_REST.php
@@ -24,7 +24,7 @@ include_once "pear-database.php";
include_once "pear-rest.php";
if (!isset($pear_rest)) {
if (isset($_SERVER['argv']) && $_SERVER['argv'][1] ==
'pecl') {
- $pear_rest = new pear_rest('/var/lib/peclweb/rest');
+ $pear_rest = new pear_rest(PEAR_REST_DIR);
} else {
$pear_rest = new pear_rest(dirname(__FILE__) . DIRECTORY_SEPARATOR .
'public_html' .
DIRECTORY_SEPARATOR . 'rest');
@@ -114,4 +114,4 @@ foreach (category::listAll() as $category) {
$pear_rest->savePackagesCategoryREST($category['name']);
echo "done\n";
}
-?>
\ No newline at end of file
+?>