diff options
Diffstat (limited to 'libs/HTML/QuickForm.php')
-rw-r--r-- | libs/HTML/QuickForm.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/HTML/QuickForm.php b/libs/HTML/QuickForm.php index de0318292c..df3fbdf079 100644 --- a/libs/HTML/QuickForm.php +++ b/libs/HTML/QuickForm.php @@ -26,11 +26,11 @@ /** * PEAR and PEAR_Error classes, for error handling */ -require_once dirname(__FILE__) . '/../PEAR.php'; +require_once 'PEAR.php'; /** * Base class for all HTML classes */ -require_once dirname(__FILE__) . '/Common.php'; +require_once 'HTML/Common.php'; /** * Element types known to HTML_QuickForm @@ -378,7 +378,7 @@ class HTML_QuickForm extends HTML_Common */ function registerRule($ruleName, $type, $data1, $data2 = null) { - include_once(dirname(__FILE__) . '/QuickForm/RuleRegistry.php'); + include_once('HTML/QuickForm/RuleRegistry.php'); $registry =& HTML_QuickForm_RuleRegistry::singleton(); $registry->registerRule($ruleName, $type, $data1, $data2); } // end func registerRule @@ -593,7 +593,7 @@ class HTML_QuickForm extends HTML_Common } $className = $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][$type][1]; $includeFile = $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][$type][0]; - include_once(dirname(__FILE__) . '/../' . $includeFile); + include_once($includeFile); $elementObject = new $className(); for ($i = 0; $i < 5; $i++) { if (!isset($args[$i])) { @@ -1376,7 +1376,7 @@ class HTML_QuickForm extends HTML_Common return false; } // automatically register the rule if requested - include_once dirname(__FILE__) . '/QuickForm/RuleRegistry.php'; + include_once 'HTML/QuickForm/RuleRegistry.php'; $ruleName = false; if (is_object($name) && is_a($name, 'html_quickform_rule')) { $ruleName = !empty($name->name)? $name->name: strtolower(get_class($name)); @@ -1514,7 +1514,7 @@ class HTML_QuickForm extends HTML_Common return false; } - include_once(dirname(__FILE__) . '/QuickForm/RuleRegistry.php'); + include_once('HTML/QuickForm/RuleRegistry.php'); $registry = HTML_QuickForm_RuleRegistry::singleton(); foreach ($this->_rules as $target => $rules) { @@ -1703,7 +1703,7 @@ class HTML_QuickForm extends HTML_Common function &defaultRenderer() { if (!isset($GLOBALS['_HTML_QuickForm_default_renderer'])) { - include_once(dirname(__FILE__) . '/QuickForm/Renderer/Default.php'); + include_once('HTML/QuickForm/Renderer/Default.php'); $GLOBALS['_HTML_QuickForm_default_renderer'] = new HTML_QuickForm_Renderer_Default(); } return $GLOBALS['_HTML_QuickForm_default_renderer']; @@ -1748,7 +1748,7 @@ class HTML_QuickForm extends HTML_Common return ''; } - include_once(dirname(__FILE__) . '/QuickForm/RuleRegistry.php'); + include_once('HTML/QuickForm/RuleRegistry.php'); $registry =& HTML_QuickForm_RuleRegistry::singleton(); $test = array(); $js_escape = array( @@ -1860,7 +1860,7 @@ class HTML_QuickForm extends HTML_Common */ function toArray($collectHidden = false) { - include_once dirname(__FILE__) . '/QuickForm/Renderer/Array.php'; + include_once 'HTML/QuickForm/Renderer/Array.php'; $renderer = new HTML_QuickForm_Renderer_Array($collectHidden); $this->accept($renderer); return $renderer->toArray(); |