From: Stig Bakken Date: Fri, 29 Mar 2002 02:39:33 +0000 (+0000) Subject: * always require PEAR/Common.php X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~977 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45878bff77731e6f926d869a5bdfef0c81251a3f;p=php * always require PEAR/Common.php --- diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 5ce356ff63..a95f45a1fd 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -2,6 +2,7 @@ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Packager.php'; +require_once 'PEAR/Common.php'; class PEAR_Command_Package extends PEAR_Command_Common { @@ -28,7 +29,9 @@ class PEAR_Command_Package extends PEAR_Command_Common */ function getCommands() { - return array('package', 'package-list', 'package-info'); + return array('package', + 'package-list', + 'package-info'); } // }}} @@ -80,7 +83,6 @@ class PEAR_Command_Package extends PEAR_Command_Common // {{{ package-list case 'package-list': { - include_once "PEAR/Common.php"; $obj = new PEAR_Common(); if (PEAR::isError($info = $obj->infoFromTgzFile($params[0]))) { return $info; @@ -125,7 +127,6 @@ class PEAR_Command_Package extends PEAR_Command_Common // {{{ package-info case 'package-info': { - include_once "PEAR/Common.php"; $obj = new PEAR_Common(); if (PEAR::isError($info = $obj->infoFromTgzFile($params[0]))) { return $info;