@@ 180-183 (lines=4) @@ | ||
177 | $where = []; |
|
178 | foreach ( $namespaces as $ns ) { |
|
179 | $w = []; |
|
180 | if ( $params['from'] !== null ) { |
|
181 | $w[] = 'ar_title' . $after . |
|
182 | $db->addQuotes( $this->titlePartToKey( $params['from'], $ns ) ); |
|
183 | } |
|
184 | if ( $params['to'] !== null ) { |
|
185 | $w[] = 'ar_title' . $before . |
|
186 | $db->addQuotes( $this->titlePartToKey( $params['to'], $ns ) ); |
|
@@ 184-187 (lines=4) @@ | ||
181 | $w[] = 'ar_title' . $after . |
|
182 | $db->addQuotes( $this->titlePartToKey( $params['from'], $ns ) ); |
|
183 | } |
|
184 | if ( $params['to'] !== null ) { |
|
185 | $w[] = 'ar_title' . $before . |
|
186 | $db->addQuotes( $this->titlePartToKey( $params['to'], $ns ) ); |
|
187 | } |
|
188 | $w = $db->makeList( $w, LIST_AND ); |
|
189 | $where[$w][] = $ns; |
|
190 | } |