Open GoogleCodeExporter opened 8 years ago
Original comment by GabrielR...@googlemail.com
on 4 Apr 2009 at 7:02
Hi,
I had the same problem when installing the wibbit plugin on a mediawiki. The
problem
is that mediawiki caches by default all the pages.
You have to do a little modification in the Exhibit_Main.php file on the
includes
folder of the extension.
When a page is in the cache, the parser is not called, thus
"Exhibit_getHTMLResult"
not being called.
And if "Exhibit_getHTMLResult" is not called, $exhibitEnabled is not set to
true.
This variable is used to load the javascript files on the
"wfExhibitAddHTMLHeader"
method.
So, the solution I found is to disable the cache of all pages that include
exhibit.
To do this, simply change this:
function Exhibit_getHTMLResult( $input, $argv ) {
global $exhibitEnabled;
global $exhibitMap;
global $exhibitTimeline;
By this:
function Exhibit_getHTMLResult( $input, $argv, $parser ) {
global $exhibitEnabled;
global $exhibitMap;
global $exhibitTimeline;
# We disable the cache of the page in order to work properly
$parser->disableCache();
I hope this helps you.
Original comment by alejo.uoc
on 14 Apr 2010 at 8:56
Original issue reported on code.google.com by
GabrielR...@googlemail.com
on 4 Apr 2009 at 5:09