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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.