Skip to content

Commit

Permalink
Fix for call-time pass-by-reference fatal error in PHP 5.4. Fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
bauhouse committed Feb 27, 2013
1 parent c3e9e46 commit de2f434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fields/field.shorten.php
Expand Up @@ -124,10 +124,10 @@ public function tearDown()
* @param mixed errors (optional)
* the input error collection. this defaults to null.
*/
public function displaySettingsPanel(XMLElement &$wrapper, $errors = null)
public function displaySettingsPanel(XMLElement $wrapper, $errors = null)
{

parent::displaySettingsPanel(&$wrapper, $errors=NULL);
parent::displaySettingsPanel($wrapper, $errors=NULL);

$order = $this->get('sortorder');

Expand Down Expand Up @@ -165,7 +165,7 @@ public function displaySettingsPanel(XMLElement &$wrapper, $errors = null)
* @param integer $entry_id (optional)
* the entry id of this field. this defaults to null.
*/
public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
public function displayPublishPanel(XMLElement $wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
{
if ($this->get('hide') == 'yes' || !$entry_id) return;

Expand Down

0 comments on commit de2f434

Please sign in to comment.