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
*/
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)) {

@ -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) {

@ -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...

@ -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;

Loading…
Cancel
Save