cvs: pearweb /public_html get
| From: | Thomas V.V.Cox | Date: | Sat, 29 Dec 2001 03:07:49 +0000 |
| Subject: | cvs: pearweb /public_html get | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1743@lists.php.net to get a copy of this message | ||
cox Fri Dec 28 22:07:49 2001 EDT
Modified files:
/pearweb/public_html get
Log:
permit connections to the DB with no DEVBOX set
Index: pearweb/public_html/get
diff -u pearweb/public_html/get:1.5 pearweb/public_html/get:1.6
--- pearweb/public_html/get:1.5 Thu Dec 27 22:44:40 2001
+++ pearweb/public_html/get Fri Dec 28 22:07:48 2001
@@ -37,6 +37,12 @@
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_404');
+// This is needed to be able to test the downloads with "wget"
+// ot the pear installer
+if (empty($dbh)) {
+ $dbh = DB::connect(PEAR_DATABASE_DSN, array('persistent' => true));
+}
+
if (!isset($PATH_INFO) || $PATH_INFO == '/') {
PEAR::raiseError('no package selected');
}