Jump to content

Code is deprecated


andrew_dunn

Recommended Posts

'm debugging a Facebook application, and I get the following error message:

 

Warning: Call-time pass-by-reference has been deprecated in /usr/www/users/adminclt/fb/fbapp/facebook/classes/app.class.php on line 24

 

I've been trying to figure it out, but I can't seem to. Line 24 of the file is line 6 here.

 

Here's the relevant code:

 

function __construct($facebook=NULL,$isAjax=false) {
		// initialize class
		require_once (PATH_CORE.'/classes/db.class.php');
		$this->db=new cloudDatabase();
		require_once (PATH_CORE.'/classes/systemStatus.class.php');
		$this->ssObj=new systemStatus($this->db);
		$this->ssObj->getProperties(&$this);
		if (!is_null($facebook))
			$this->facebook=&$facebook; // must do before setupTemplates();
 		require_once (PATH_FACEBOOK.'/classes/session.class.php');
		$this->session=new session($this);				
		$this->isAjax=$isAjax;
		if (!$isAjax) {
			$this->session->setupSession();
		} else {
			// to do - setup session via jscript rather than POST
		} 
	}	

 

Thanks in advance!

 

Link to comment
https://forums.phpfreaks.com/topic/162695-code-is-deprecated/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.