Recent Topics

1 Feb 22, 2008 19:10    

In 2.4, when calling Itemlight::type( '', ''. 'raw'), the call to disp errors out:


		if( $format == 'raw' )
		{
			$this->disp( $extra_status, 'raw' );
		}

It seems to error out because $extra_status is what the post/item's type actually is ("post" or "link", etc.), instead of "type".

The actual error takes place with the data object:

Notice: Undefined property: ItemLight::$Link in C:\Program Files\VertrigoServ\www\inc\_core\model\dataobjects\_dataobject.class.php on line 461


	function disp( $parname, $format = 'htmlbody' )
	{
		// Note: we call get again because of derived objects specific handlers !
		echo format_to_output( $this->get($parname), $format );
	}


	function get( $parname )
	{
		return $this->$parname;    // <--- line 461
	}


Form is loading...