svn: /pear/pearweb/trunk/public_html/ package-edit.php package-new.php

From: Date: Wed, 13 Apr 2011 00:32:55 +0000
Subject: svn: /pear/pearweb/trunk/public_html/ package-edit.php package-new.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9875@lists.php.net to get a copy of this message
clockwerx Wed, 13 Apr 2011 00:32:55 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310177 Log: DRY Changed paths: U pear/pearweb/trunk/public_html/package-edit.php U pear/pearweb/trunk/public_html/package-new.php Modified: pear/pearweb/trunk/public_html/package-edit.php =================================================================== --- pear/pearweb/trunk/public_html/package-edit.php 2011-04-13 00:30:25 UTC (rev 310176) +++ pear/pearweb/trunk/public_html/package-edit.php 2011-04-13 00:32:55 UTC (rev 310177) @@ -24,19 +24,10 @@ require_once 'tags/Manager.php'; require_once 'HTML/QuickForm2.php'; require_once 'HTML/QuickForm2/Renderer.php'; -require_once 'HTML/QuickForm2/Element/Input.php'; +/** @todo Remove once part of QF2 */ +require_once 'HTML/QuickForm2/Element/InputUrl.php'; -/** @todo Shift ! */ -if (!class_exists('HTML_QuickForm2_Element_InputUrl')) { - class HTML_QuickForm2_Element_InputUrl extends HTML_QuickForm2_Element_Input - { - protected $attributes = array('type' => 'url'); - } - HTML_QuickForm2_Factory::registerElement('url', 'HTML_QuickForm2_Element_InputUrl'); -} - - response_header('Edit Package'); ?> Modified: pear/pearweb/trunk/public_html/package-new.php =================================================================== --- pear/pearweb/trunk/public_html/package-new.php 2011-04-13 00:30:25 UTC (rev 310176) +++ pear/pearweb/trunk/public_html/package-new.php 2011-04-13 00:32:55 UTC (rev 310177) @@ -20,18 +20,10 @@ require_once 'HTML/QuickForm2.php'; require_once 'HTML/QuickForm2/Renderer.php'; -require_once 'HTML/QuickForm2/Element/Input.php'; +/** @todo Remove once part of QF2 */ +require_once 'HTML/QuickForm2/Element/InputUrl.php'; -/** @todo Shift ! */ -if (!class_exists('HTML_QuickForm2_Element_InputUrl')) { - class HTML_QuickForm2_Element_InputUrl extends HTML_QuickForm2_Element_Input - { - protected $attributes = array('type' => 'url'); - } - HTML_QuickForm2_Factory::registerElement('url', 'HTML_QuickForm2_Element_InputUrl'); -} - if (!defined('PEAR_COMMON_PACKAGE_NAME_PREG')) { define('PEAR_COMMON_PACKAGE_NAME_PREG', '^([A-Z][a-zA-Z0-9_]+|[a-z][a-z0-9_]+)$'); }

« previous php.pear.core (#9875) next »