cvs: pear-core /PEAR/Downloader Package.php

From: Date: Sat, 12 Mar 2005 12:19:40 +0000
Subject: cvs: pear-core /PEAR/Downloader Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-30241@lists.php.net to get a copy of this message
cellog Sat Mar 12 07:19:40 2005 EDT Modified files: /pear-core/PEAR/Downloader Package.php Log: fix fatal error in some instances http://cvs.php.net/diff.php/pear-core/PEAR/Downloader/Package.php?r1=1.59&r2=1.60&ty=u Index: pear-core/PEAR/Downloader/Package.php diff -u pear-core/PEAR/Downloader/Package.php:1.59 pear-core/PEAR/Downloader/Package.php:1.60 --- pear-core/PEAR/Downloader/Package.php:1.59 Fri Mar 11 15:17:31 2005 +++ pear-core/PEAR/Downloader/Package.php Sat Mar 12 07:19:39 2005 @@ -16,7 +16,7 @@ // | Authors: Gregory Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.59 2005/03/11 20:17:31 cellog Exp $ +// $Id: Package.php,v 1.60 2005/03/12 12:19:39 cellog Exp $ /** * Coordinates download parameters and manages their dependencies * prior to downloading them. @@ -897,6 +897,9 @@ $channel = isset($param['channel']) ? $param['channel'] : $param['info']->getChannel(); if (isset($param['rel'])) { + if (!class_exists('PEAR_Dependency2')) { + require_once 'PEAR/Dependency2.php'; + } $newdep = PEAR_Dependency2::normalizeDep($param); $newdep = $newdep[0]; } elseif (isset($param['min'])) {

« previous php.pear.cvs (#30241) next »