On 03/10/2007, Gisle Sælensminde <Gisle.Salensminde(a)bccs.uib.no> wrote:
I would really like to be able to get the bibtex file
from another
article in the same wiki, but I don't know the right way to do it.
Should I do a SQL query directly inside my extension, or is there a
better way to do it.
Assuming the page is titled "BibTeX", for example:
$rev = Revision::newFromTitle( Title::newFromText( "BibTeX" ) );
if( $rev instanceof Revision ) {
$text = $rev->getText();
} else {
// Error message? :(
}
Rob Church