logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pear-core /PEAR/PackageFile v2.php: msg#00256

Subject: cvs: pear-core /PEAR/PackageFile v2.php
cellog          Tue May 29 20:28:41 2007 UTC

  Modified files:              
    /pear-core/PEAR/PackageFile v2.php 
  Log:
  consistency to avoid breaking unit test, use ucwords()
  on $task in getTask()
  
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/PackageFile/v2.php?r1=1.138&r2=1.139&diff_format=u
Index: pear-core/PEAR/PackageFile/v2.php
diff -u pear-core/PEAR/PackageFile/v2.php:1.138 
pear-core/PEAR/PackageFile/v2.php:1.139
--- pear-core/PEAR/PackageFile/v2.php:1.138     Tue May 29 19:48:00 2007
+++ pear-core/PEAR/PackageFile/v2.php   Tue May 29 20:28:41 2007
@@ -15,7 +15,7 @@
  * @author     Greg Beaver <cellog@xxxxxxx>
  * @copyright  1997-2006 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
- * @version    CVS: $Id: v2.php,v 1.138 2007/05/29 19:48:00 cellog Exp $
+ * @version    CVS: $Id: v2.php,v 1.139 2007/05/29 20:28:41 cellog Exp $
  * @link       http://pear.php.net/package/PEAR
  * @since      File available since Release 1.4.0a1
  */
@@ -1951,7 +1951,7 @@
         // transform all '-' to '/' and 'tasks:' to '' so tasks:replace 
becomes replace
         $task = str_replace(array($this->_tasksNs . ':', '-'), array('', ' '), 
$task);
         $taskfile = str_replace(' ', '/', ucwords($task));
-        $task = str_replace('/', '_', $task);
+        $task = str_replace('/', '_', ucwords($task));
         if (class_exists("PEAR_Task_$task")) {
             return "PEAR_Task_$task";
         }

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>