From: Ævar Arnfjörð Bjarmason Date: Thu, 6 Oct 2005 01:17:08 +0000 (+0000) Subject: * Use User::isLoggedIn(), the proper way to find out if a user is logged in X-Git-Tag: 1.6.0~1537 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=c2ad58d5456eef6666d7bccaaa81c068ee91eeb0;p=lhc%2Fweb%2Fwiklou.git * Use User::isLoggedIn(), the proper way to find out if a user is logged in --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 4590d439d3..88100c236e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -398,7 +398,7 @@ class EditPage { } } if($addstandardintro) { - if ( $wgUser->getID() ) + if ( $wgUser->isLoggedIn() ) $wgOut->addWikiText( wfMsg( 'newarticletext' ) ); else $wgOut->addWikiText( wfMsg( 'newarticletextanon' ) );