Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2360
botlang.diff
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:51 PM
2014-11-21 20:51:33 (UTC+0)
Size
702 B
Referenced Files
None
Subscribers
None
botlang.diff
View Options
Index: GlobalFunctions.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/GlobalFunctions.php,v
retrieving revision 1.217
diff -u -r1.217 GlobalFunctions.php
--- GlobalFunctions.php 25 Sep 2005 12:19:50 -0000 1.217
+++ GlobalFunctions.php 8 Oct 2005 14:41:32 -0000
@@ -350,6 +350,12 @@
$fname = 'wfMsgReal';
wfProfileIn( $fname );
+ global $wgLanguageCode;
+ if ( !$forContent && ( $wgLanguageCode == "bot" || $wgLanguageCode == "none") ) {
+ wfProfileOut( $fname );
+ return "{@[$key]@}";
+ }
+
$message = wfMsgGetKey( $key, $useDB, $forContent );
$message = wfMsgReplaceArgs( $message, $args );
wfProfileOut( $fname );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1936
Default Alt Text
botlang.diff (702 B)
Attached To
Mode
T5652: PATCH: pseudo-language for scripts and bots that rely on parsing HTML output
Attached
Detach File
Event Timeline
Log In to Comment