Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1860
SpecialBlockip.php.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:14 PM
2014-11-21 20:14:02 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
SpecialBlockip.php.patch
View Options
Index: SpecialBlockip.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/SpecialBlockip.php,v
retrieving revision 1.34
diff -u -r1.34 SpecialBlockip.php
--- SpecialBlockip.php 22 Feb 2005 18:20:12 -0000 1.34
+++ SpecialBlockip.php 7 Mar 2005 16:41:34 -0000
@@ -68,9 +68,9 @@
$scBlockExpiry = htmlspecialchars( $this->BlockExpiry );
$scBlockReason = htmlspecialchars( $this->BlockReason );
- $blockExpiryOptions = join("</option><option>", split(",", $wgBlockExpiryOptions));
- $blockExpiryOptions = "<option>" . $blockExpiryOptions . "</option>";
-
+ foreach( explode( ',', $wgBlockExpiryOptions ) as $element) {
+ $blockExpiryOptions .= '<option>' . $element . '</option>'."\n";
+ }
$token = htmlspecialchars( $wgUser->editToken() );
$wgOut->addHTML( "
@@ -85,8 +85,8 @@
<tr>
<td align=\"right\">{$mIpbexpiry}:</td>
<td align=\"left\">
- <select tabindex='2' name=\"wpBlockExpiry\"/>
- <?= $blockExpiryOptions ?>
+ <select tabindex='2' name=\"wpBlockExpiry\">
+ $blockExpiryOptions
</select>
</td>
</tr>
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1515
Default Alt Text
SpecialBlockip.php.patch (1 KB)
Attached To
Mode
T3650: A patch to fix a bug and incoherant code in Special:Blockip
Attached
Detach File
Event Timeline
Log In to Comment