@@ -43,7 +43,7 @@ |
||
43 | 43 | $userObj = User::getByUsername($filterUser, $database); |
44 | 44 | if ($userObj !== false) { |
45 | 45 | $logSearch->byUser($userObj->getId()); |
46 | - } |
|
46 | + } |
|
47 | 47 | else { |
48 | 48 | $logSearch->byUser(-1); |
49 | 49 | } |
@@ -122,7 +122,7 @@ |
||
122 | 122 | // <https://accounts.wmflabs.org/wiki/Help:Introduction> |
123 | 123 | // The code currently assumes that the template was parsed for enwiki, and will need to be |
124 | 124 | // updated once other wikis are supported. |
125 | - $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml ); |
|
125 | + $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml); |
|
126 | 126 | |
127 | 127 | $this->assign('templateHtml', $templateHtml); |
128 | 128 | $this->assign('template', $template); |
@@ -150,7 +150,7 @@ |
||
150 | 150 | if ($user->getForceIdentified() === null) { |
151 | 151 | $idVerifier = new IdentificationVerifier($this->getHttpHelper(), $this->getSiteConfiguration(), $this->getDatabase()); |
152 | 152 | $this->assign('identificationStatus', $idVerifier->isUserIdentified($user->getOnWikiName()) ? 'detected' : 'missing'); |
153 | - } |
|
153 | + } |
|
154 | 154 | else { |
155 | 155 | $this->assign('identificationStatus', $user->getForceIdentified() == 1 ? 'forced-on' : 'forced-off'); |
156 | 156 | } |
@@ -225,7 +225,7 @@ |
||
225 | 225 | 'jobId' => $job->getId(), |
226 | 226 | 'jobDesc' => JobQueue::getTaskDescriptions()[$job->getTask()], |
227 | 227 | ); |
228 | - } |
|
228 | + } |
|
229 | 229 | else { |
230 | 230 | $requestLogs[] = array( |
231 | 231 | 'type' => 'log', |
@@ -115,14 +115,14 @@ |
||
115 | 115 | // Each entry is in the form [ database string, attribute name ] |
116 | 116 | // and it happens to be that the attribute is just the lower case form of the database value |
117 | 117 | $actions = [ |
118 | - ['Suspended', 'suspended' ], |
|
119 | - ['Promoted', 'promoted' ], |
|
120 | - ['Approved', 'approved' ], |
|
121 | - ['Demoted', 'demoted' ], |
|
122 | - ['Declined', 'declined' ], |
|
123 | - ['Renamed', 'renamed' ], |
|
124 | - ['Edited', 'edited' ], |
|
125 | - ['Prefchange', 'prefchange' ], |
|
118 | + ['Suspended', 'suspended'], |
|
119 | + ['Promoted', 'promoted'], |
|
120 | + ['Approved', 'approved'], |
|
121 | + ['Demoted', 'demoted'], |
|
122 | + ['Declined', 'declined'], |
|
123 | + ['Renamed', 'renamed'], |
|
124 | + ['Edited', 'edited'], |
|
125 | + ['Prefchange', 'prefchange'], |
|
126 | 126 | ]; |
127 | 127 | foreach ($actions as $action) { |
128 | 128 | $dbValue = $action[0]; |