r79351 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r79350
|
r79351
|
r79352
>
Date:
16:56, 31 December 2010
Author:
catrope
Status:
ok
Tags:
Comment:
1.17: Fix fatal error due to undefined $dbr introduced in
r57989
. This was fixed in trunk in
r79347
but that revision contains too many incompatible changes to be merged directly. 1.16 is also affected, will backport there too.
Modified paths:
/branches/REL1_17/phase3/includes/specials/SpecialLinkSearch.php
(modified) (
history
)
Diff
[
purge
]
Index: branches/REL1_17/phase3/includes/specials/SpecialLinkSearch.php
—
—
@@ -117,6 +117,7 @@
118
118
if ($rv === false) {
119
119
// LinkFilter doesn't handle wildcard in IP, so we'll have to munge here.
120
120
if (preg_match('/^(:?[0-9]{1,3}\.)+\*\s*$|^(:?[0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]*\*\s*$/', $query)) {
121
+ $dbr = wfGetDB( DB_SLAVE );
121
122
$rv = array( $prot . rtrim($query, " \t*"), $dbr->anyString() );
122
123
$field = 'el_to';
123
124
}
Follow-up revisions
Revision
Commit summary
Author
Date
r79354
1.16wmf4: Merge
r79351
from the 1.17 branch, fixes fatal in Special:LinkSearch
catrope
17:07, 31 December 2010
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r57989
(
bug 20275
) Fixed LIKE queries on SQLite backend...
maxsem
19:53, 21 October 2009
r79347
Follow-up
r78786
: the querypage branch merge threw SpecialLinkSearch back to ...
catrope
16:44, 31 December 2010
Status & tagging log
01:15, 10 January 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r79351
[
removed:
deferred
added:
ok]
01:18, 8 January 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r79351
[
removed:
new
added:
deferred]