Discussion:
svn: /pear/pearweb/trunk/public_html/ package-edit.php package-new.php
Daniel O'Connor
2011-04-13 00:32:55 UTC
Permalink
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_]+)$');
}

Loading...