mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-15 03:13:58 +00:00
and title
This commit is contained in:
parent
588955efbd
commit
3aaededb3b
|
@ -100,7 +100,7 @@ class SpamBlacklist {
|
|||
function getArticleLines( $db, $article ) {
|
||||
$dbr = wfGetDB( DB_READ );
|
||||
$cur = $dbr->tableName( 'cur' );
|
||||
$res = $dbr->query( "SELECT cur_text FROM $db.$cur WHERE cur_namespace=0 AND cur_title='Spam_blacklist'" );
|
||||
$res = $dbr->query( "SELECT cur_text FROM $db.$cur WHERE cur_namespace=0 AND cur_title='$article'" );
|
||||
$row = $dbr->fetchObject( $res );
|
||||
if ( $row ) {
|
||||
return explode( "\n", $row->cur_text );
|
||||
|
|
Loading…
Reference in a new issue