From: Tomas V.V.Cox Date: Sun, 19 Aug 2001 12:53:01 +0000 (+0000) Subject: The "pear package" command will try to open "./package.xml" if no more X-Git-Tag: PRE_SUBST_Z_MACROS~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9037bedb9e29f6f87c108a232d103666759ec450;p=php The "pear package" command will try to open "./package.xml" if no more params are given. --- diff --git a/pear/PEAR/Packager.php b/pear/PEAR/Packager.php index d09406d745..72591e1a99 100644 --- a/pear/PEAR/Packager.php +++ b/pear/PEAR/Packager.php @@ -15,6 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: Stig Bakken | // | Tomas V.V.Cox | +// | | // +----------------------------------------------------------------------+ // // $Id$ @@ -114,8 +115,11 @@ class PEAR_Packager extends PEAR_Common // {{{ package() - function package($pkgfile = 'package.xml') + function package($pkgfile = null) { + if (empty($pkgfile)) { + $pkgfile = 'package.xml'; + } $pkginfo = $this->infoFromDescriptionFile($pkgfile); if (PEAR::isError($pkginfo)) { return $pkginfo;