Fix __construct PHP warnings

ofaj
jmontoyaa 9 years ago
parent 604e9acfe7
commit 50f9062c3f
  1. 4
      main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php
  2. 6
      main/inc/lib/pear/PEAR.php
  3. 2
      main/inc/lib/pear/Pager/Pager.php
  4. 2
      main/inc/lib/pear/Pager/Sliding.php

@ -167,7 +167,7 @@ class HTML_QuickForm_Renderer_Default extends HTML_QuickForm_Renderer
* *
* @access public * @access public
*/ */
public function HTML_QuickForm_Renderer_Default() public function __construct()
{ {
parent::__construct(); parent::__construct();
} // end constructor } // end constructor
@ -280,7 +280,7 @@ class HTML_QuickForm_Renderer_Default extends HTML_QuickForm_Renderer
{ {
$name = $element->getName(); $name = $element->getName();
$label = $element->getLabel(); $label = $element->getLabel();
$labelForId = $element->getAttribute('id'); $labelForId = $element->getAttribute('id');
$icon = $element->getIconToHtml(); $icon = $element->getIconToHtml();
if (is_array($label)) { if (is_array($label)) {

@ -156,7 +156,7 @@ class PEAR
* @access public * @access public
* @return void * @return void
*/ */
function PEAR($error_class = null) public function __construc($error_class = null)
{ {
$classname = strtolower(get_class($this)); $classname = strtolower(get_class($this));
if ($this->_debug) { if ($this->_debug) {
@ -253,7 +253,7 @@ class PEAR
$GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
} }
// }}} // }}}
// {{{ isError() // {{{ isError()
/** /**
@ -873,7 +873,7 @@ class PEAR_Error
* @access public * @access public
* *
*/ */
function PEAR_Error($message = 'unknown error', $code = null, public function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null) $mode = null, $options = null, $userinfo = null)
{ {
if ($mode === null) { if ($mode === null) {

@ -138,7 +138,7 @@ class Pager
* *
* @access public * @access public
*/ */
function Pager($options = array()) public function __construct($options = array())
{ {
//this check evaluates to true on 5.0.0RC-dev, //this check evaluates to true on 5.0.0RC-dev,
//so i'm using another one, for now... //so i'm using another one, for now...

@ -58,7 +58,7 @@ class Pager_Sliding extends Pager_Common
* *
* @access public * @access public
*/ */
function Pager_Sliding($options = array()) public function __construct($options = array())
{ {
//set default Pager_Sliding options //set default Pager_Sliding options
$this->_delta = 2; $this->_delta = 2;

Loading…
Cancel
Save