From 50f9062c3fb190ffc3825f0376e76361f11badad Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 7 Apr 2016 09:37:14 +0200 Subject: [PATCH] Fix __construct PHP warnings --- main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php | 4 ++-- main/inc/lib/pear/PEAR.php | 6 +++--- main/inc/lib/pear/Pager/Pager.php | 2 +- main/inc/lib/pear/Pager/Sliding.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php b/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php index 2268a9ad09..1cf752fb1a 100755 --- a/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php +++ b/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php @@ -167,7 +167,7 @@ class HTML_QuickForm_Renderer_Default extends HTML_QuickForm_Renderer * * @access public */ - public function HTML_QuickForm_Renderer_Default() + public function __construct() { parent::__construct(); } // end constructor @@ -280,7 +280,7 @@ class HTML_QuickForm_Renderer_Default extends HTML_QuickForm_Renderer { $name = $element->getName(); $label = $element->getLabel(); - $labelForId = $element->getAttribute('id'); + $labelForId = $element->getAttribute('id'); $icon = $element->getIconToHtml(); if (is_array($label)) { diff --git a/main/inc/lib/pear/PEAR.php b/main/inc/lib/pear/PEAR.php index 005954069e..ed0d020ad6 100755 --- a/main/inc/lib/pear/PEAR.php +++ b/main/inc/lib/pear/PEAR.php @@ -156,7 +156,7 @@ class PEAR * @access public * @return void */ - function PEAR($error_class = null) + public function __construc($error_class = null) { $classname = strtolower(get_class($this)); if ($this->_debug) { @@ -253,7 +253,7 @@ class PEAR $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); } - // }}} + // }}} // {{{ isError() /** @@ -873,7 +873,7 @@ class PEAR_Error * @access public * */ - function PEAR_Error($message = 'unknown error', $code = null, + public function __construct($message = 'unknown error', $code = null, $mode = null, $options = null, $userinfo = null) { if ($mode === null) { diff --git a/main/inc/lib/pear/Pager/Pager.php b/main/inc/lib/pear/Pager/Pager.php index a44cbeb8cf..3596955940 100755 --- a/main/inc/lib/pear/Pager/Pager.php +++ b/main/inc/lib/pear/Pager/Pager.php @@ -138,7 +138,7 @@ class Pager * * @access public */ - function Pager($options = array()) + public function __construct($options = array()) { //this check evaluates to true on 5.0.0RC-dev, //so i'm using another one, for now... diff --git a/main/inc/lib/pear/Pager/Sliding.php b/main/inc/lib/pear/Pager/Sliding.php index 9dbbdbe101..2b308e33fb 100755 --- a/main/inc/lib/pear/Pager/Sliding.php +++ b/main/inc/lib/pear/Pager/Sliding.php @@ -58,7 +58,7 @@ class Pager_Sliding extends Pager_Common * * @access public */ - function Pager_Sliding($options = array()) + public function __construct($options = array()) { //set default Pager_Sliding options $this->_delta = 2;