[Mediawiki-l] StableVersion corrupting WikiText
john Moorhouse
john.moorhouse at 3jays.me.uk
Mon Feb 5 13:49:05 UTC 2007
I think I have fixed the main error if using stable versions with MW
1.91, by changing the line:-
//$text = $p->replaceVariables( $text, $parserOptions );
to:
$text = $p->replaceVariables( $text->mText, $parserOptions );
should be passing mText (the wikitext of the page) as above instead of
the entire Parser object.. I think
This extension now works (shows stable & draft version as expected'
except the 'stable version is cached as the html such as:-
<ol><li>[[/Responsibilities of Social Worker Placing Child/]]
</li><li>[[/Ongoing Support for the Carer/]]
</li><li>[[/Role and Responsibilities of the Child's Social Worker/]]
</li><li>[[/Other Support to Foster Carers/]]
</li></ol>
rather than the wikitext:-
#[[/Responsibilities of Social Worker Placing Child/]]
#[[/Ongoing Support for the Carer/]]
#[[/Role and Responsibilities of the Child's Social Worker/]]
#[[/Other Support to Foster Carers/]]
ie. write as wikitext, set as stable, and if you try to edit you get the
HTML, if you 'revert' you get the wikitext back.
Any comments /. thoughts
--
-------------------------------
John Moorhouse
Web Development Officer
Swyddog Datblygu'r Wefan
Powys County Council
The Gwalia,
Ithon Road,
Llandrindod Wells,
Powy
LD1 6AA
01597 82 7090
John.Moorhouse at powys.gov.uk
-----------------------------------------
More information about the MediaWiki-l
mailing list