From: <var...@us...> - 2016-05-23 18:56:38
|
Revision: 9841 http://sourceforge.net/p/phpwiki/code/9841 Author: vargenau Date: 2016-05-23 18:56:36 +0000 (Mon, 23 May 2016) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/WikiTheme.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2016-05-23 18:52:48 UTC (rev 9840) +++ trunk/lib/WikiTheme.php 2016-05-23 18:56:36 UTC (rev 9841) @@ -1825,11 +1825,11 @@ * @param $img_url string URL for button's image. * @param $img_attr array Additional attributes for the <img> tag. */ - function SubmitImageButton($text, $name = '', $class = '', $img_url, $img_attr = array()) + function __construct($text, $name = '', $class = '', $img_url, $img_attr = array()) { - $this->__construct('input', array('type' => 'image', - 'src' => $img_url, - 'alt' => $text)); + parent::__construct('input', array('type' => 'image', + 'src' => $img_url, + 'alt' => $text)); if ($name) $this->setAttr('name', $name); if ($class) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |