On Wed, May 28, 2008 at 1:00 PM, Roan Kattouw <roan.kattouw(a)home.nl> wrote:
Alternatively, you can do
@UserrightsPage::userCanExecute($wgUser); (the
@ is necessary to suppress the E_NOTICE about calling a non-static
function statically) and pray userCanExecute() doesn't dereference $this.
Suppressing errors left and right when is a bad idea unless there's
really no better way to do it. You suppress all the important errors
as well as the one you don't care about; it can hide problems. And
userCanExecute() does use $this, anyway.