Page MenuHomePhabricator

loggedin.patch

Authored By
bzimport
Nov 21 2014, 8:41 PM
Size
1 KB
Referenced Files
None
Subscribers
None

loggedin.patch

Index: includes/SkinTemplate.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/SkinTemplate.php,v
retrieving revision 1.8.2.22
diff -u -w -r1.8.2.22 SkinTemplate.php
--- includes/SkinTemplate.php 25 Jun 2005 00:51:05 -0000 1.8.2.22
+++ includes/SkinTemplate.php 13 Jul 2005 14:23:56 -0000
@@ -567,7 +567,7 @@
'href' => $wgTitle->getLocalUrl( 'action=delete' )
);
}
- if ( $wgUser->getID() != 0 ) {
+ if ( $this->loggedin ) {
if ( $wgTitle->userCanMove()) {
$content_actions['move'] = array(
'class' => ($wgTitle->getDbKey() == 'Movepage' and $wgTitle->getNamespace == Namespace::getSpecial()) ? 'selected' : false,
@@ -590,7 +590,7 @@
}
wfProfileOut( "$fname-live" );
- if ( $wgUser->getID() != 0 and $action != 'submit' ) {
+ if ( $this->loggedin and $action != 'submit' ) {
if( !$wgTitle->userIsWatching()) {
$content_actions['watch'] = array(
'class' => ($action == 'watch' or $action == 'unwatch') ? 'selected' : false,
@@ -879,7 +879,7 @@
global $wgUser;
$s = "/* generated user stylesheet */\n";
- if($wgUser->getID() != 0) {
+ if($this->loggedin) {
if ( 1 == $wgUser->getOption( "underline" ) ) {
$s .= "a { text-decoration: underline; }\n";
} else {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1744
Default Alt Text
loggedin.patch (1 KB)

Event Timeline