-------- Original-Nachricht --------
Datum: Tue, 30 Oct 2007 20:41:56 +1100
Von: "Andrew Garrett" <andrew(a)epstone.net>
An: "Wikimedia developers" <wikitech-l(a)lists.wikimedia.org>
Betreff: Re: [Wikitech-l] How to get the article content?
On 10/30/07, "Marcus Schäfer"
<magggus(a)gmx.de> wrote:
I forgot to activate display_errors so I
didn't get any error message,
just a blank page.
global $wgArticle;
> '$text = $wgArticle->getContent();'
> If I try to use this line of code I
get the following error-message:
> "Fatal error: Call to a member
function getContent() on a non-object"
Well then, the problem's pretty simple. See amended code above.
--
Andrew Garrett
Even if I call the global $wgArticle variable the same error-message appears. For this
reason I thought there were any changes in the code e.g. Because like I mentioned: it
worked on older releases!?!
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung:
http://www.gmx.net/de/go/freemail