-------- Original-Nachricht --------
Datum: Tue, 30 Oct 2007 20:41:56 +1100 Von: "Andrew Garrett" andrew@epstone.net An: "Wikimedia developers" wikitech-l@lists.wikimedia.org Betreff: Re: [Wikitech-l] How to get the article content?
On 10/30/07, "Marcus Schäfer" magggus@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!?!