Skip to content

Commit 1d5c3ea

Browse files
author
Daniel Kinzler
committed
multiple values for retain_transcluding
git-svn-id: https://svn.toolserver.org/svnroot/daniel/duesenstuff/trunk/gpClient@552 9f2c43bc-b3c0-43f4-b155-41619b16f219
1 parent 5c89653 commit 1d5c3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/gpMediaWiki.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ public function retain_transcluding( $title, $ns = null ) { #TODO: port to pytho
494494

495495
$join = 'LEFT JOIN ' . $this->glue->wiki_table('templatelinks');
496496
$join .= ' ON ' . $this->glue->condition_sql( array(
497-
'tl_from' => $this->id_field,
498-
'tl_title' => $this->glue->quote_string($title),
497+
'tl_from' => $this->id_field, #literals not assumed: used as a field name, not a string value
498+
'tl_title' => ( is_array($title) ? $title : $this->glue->quote_string($title) ), #need to quote strings, because literals are not assumed
499499
'tl_namespace' => (int)$ns,
500500
), false );
501501

0 commit comments

Comments
 (0)