Page 1 of 1

Suggestion

Posted: 18 Jun 2013, 12:56
by szablac
Hi Jan,
To help those developers who want to integrate with Phoca PDF, there should be one more error handling case in phocapdfrender.php around line cca. 136.
Something similar:

Code: Select all

default:
	$dispatcher   = JDispatcher::getInstance();
	if (JPluginhelper::isEnabled('phocapdf',strtolower($t))){
		JPluginHelper::importPlugin( 'phocapdf' );
		$results = $dispatcher->trigger('onBeforeDisplayPDF'.$t, array (&$pdf, &$content, &$document));
	} else {
		return JError::raiseError('PDF ERROR', 'Phoca PDF - '.$t.' plugin is disabled or not installed'); 
	}
	break;
Rgds

Re: Suggestion

Posted: 23 Jun 2013, 14:06
by Jan
Hi, thank you for the info, I will do tests and will try to implement it into the next version.

Jan