From: <var...@us...> - 2011-06-09 10:04:16
|
Revision: 8098 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8098&view=rev Author: vargenau Date: 2011-06-09 10:04:10 +0000 (Thu, 09 Jun 2011) Log Message: ----------- Avoid PHP Fatal error: Call to a member function getCurrentRevision() on a non-object Modified Paths: -------------- trunk/lib/plugin/CreateBib.php Modified: trunk/lib/plugin/CreateBib.php =================================================================== --- trunk/lib/plugin/CreateBib.php 2011-06-09 07:54:38 UTC (rev 8097) +++ trunk/lib/plugin/CreateBib.php 2011-06-09 10:04:10 UTC (rev 8098) @@ -149,9 +149,7 @@ // Yes, we want to dump this somewhere // Get the contents of this page $p = $dbi->getPage($pagename); - $c = $p->getCurrentRevision(); - $pagedata = $c->getContent(); - $this->dumpFile($pagedata, $request->getArg('file')); + return $this->dumpFile($p, $request->getArg('file')); } return $html; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |