[vhffs-dev] [2246] fixed MediaWiki VHFFS auth plugin, call-time pass-by-reference has been removed in PHP 4.4

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2246
Author:   gradator
Date:     2014-07-06 12:17:22 +0200 (Sun, 06 Jul 2014)
Log Message:
-----------
fixed MediaWiki VHFFS auth plugin, call-time pass-by-reference has been removed in PHP 4.4

Modified Paths:
--------------
    trunk/vhffs-mw/VHFFSAuthPlugin.php

Modified: trunk/vhffs-mw/VHFFSAuthPlugin.php
===================================================================
--- trunk/vhffs-mw/VHFFSAuthPlugin.php	2014-07-05 20:20:00 UTC (rev 2245)
+++ trunk/vhffs-mw/VHFFSAuthPlugin.php	2014-07-06 10:17:22 UTC (rev 2246)
@@ -78,7 +78,7 @@
 		return true;
 	}
 
-	function initUser( &$user )
+	function initUser( $user )
 	{
 		$result = $this->pgquery( 'SELECT firstname,lastname,mail FROM vhffs_forum WHERE state=6 AND username=\''.pg_escape_string( strtolower( $user->getName() ) ).'\'' );
 		if( pg_num_rows($result) != 1 ) $this->mydie('Hummmmmm......');
@@ -90,8 +90,8 @@
 		return true;
 	}
 
-	function updateUser( &$user ) {
-		$this->initUser( &$user );
+	function updateUser( $user ) {
+		$this->initUser( $user );
 	}
 
 	function allowPasswordChange() {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/