Skip to content

Commit

Permalink
PHP 5
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Dec 12, 2011
1 parent 8cd0974 commit bde80d8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Image/Text.php
Expand Up @@ -59,7 +59,7 @@
*
* -------- End example --------
*
* PHP versions 4 and 5
* PHP version 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
Expand Down Expand Up @@ -368,8 +368,7 @@ class Image_Text {
* @access public
* @see Image_Text::set(), Image_Text::construct(), Image_Text::init()
*/

function Image_Text($text, $options = null)
public function __construct($text, $options = null)
{
$this->set('text', $text);
if (!empty($options)) {
Expand All @@ -389,7 +388,7 @@ function Image_Text($text, $options = null)
* @see Image_Text::set(), Image_Text::Image_Text(), Image_Text::init()
*/

function &construct ( $text, $options ) {
function construct ( $text, $options ) {
$itext = new Image_Text($text, $options);
$res = $itext->init();
if (PEAR::isError($res)) {
Expand Down Expand Up @@ -1052,7 +1051,7 @@ function render($force=false)
* @return resource Used image resource
*/

function &getImg()
function getImg()
{
return $this->_img;
}
Expand Down

0 comments on commit bde80d8

Please sign in to comment.