[Mediawiki-l] makeKnownLinkObj call error

Brion Vibber brion at pobox.com
Fri Feb 17 19:19:46 UTC 2006

FxParlant wrote:
> Warning: Problem with method call - please report this bug in
> C:\apache2\htdocs\phase3\extensions\Calendar.php on line 204
> The problem is that my extension is not a class (should I still use the
> I tried this which works but gives the warning:
>         global $wgUser;
>         $skin = $wgUser->getSkin();
>         foreach($entries[$today] as $key ){
>         $nt = Title::makeTitle( $entriesProperties[$today][0], $key );
>         $link = $this->skin->makeKnownLinkObj( $nt, '', $extra ); //
> line of the error... it works but gives a warning

If this isn't in an object instance method, $this won't work too well. :)

Try: $skin->makeKnownLinkObj

If that doesn't help it may be a bug in PHP. Make sure you've upgraded to the
latest release.

-- brion vibber (brion @ pobox.com)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20060217/2bbdd430/attachment.pgp 

More information about the MediaWiki-l mailing list