@@ 165-180 (lines=16) @@ | ||
162 | $this->addWhere( "ar_rev_id $op $rev OR " . |
|
163 | "(ar_rev_id = $rev AND " . |
|
164 | "ar_id $op= $ar_id)" ); |
|
165 | } else { |
|
166 | $this->dieContinueUsageIf( count( $cont ) != 4 ); |
|
167 | $ns = intval( $cont[0] ); |
|
168 | $this->dieContinueUsageIf( strval( $ns ) !== $cont[0] ); |
|
169 | $title = $db->addQuotes( $cont[1] ); |
|
170 | $ts = $db->addQuotes( $db->timestamp( $cont[2] ) ); |
|
171 | $ar_id = (int)$cont[3]; |
|
172 | $this->dieContinueUsageIf( strval( $ar_id ) !== $cont[3] ); |
|
173 | $this->addWhere( "ar_namespace $op $ns OR " . |
|
174 | "(ar_namespace = $ns AND " . |
|
175 | "(ar_title $op $title OR " . |
|
176 | "(ar_title = $title AND " . |
|
177 | "(ar_timestamp $op $ts OR " . |
|
178 | "(ar_timestamp = $ts AND " . |
|
179 | "ar_id $op= $ar_id)))))" ); |
|
180 | } |
|
181 | } |
|
182 | ||
183 | $this->addOption( 'LIMIT', $this->limit + 1 ); |
@@ 264-279 (lines=16) @@ | ||
261 | $title = $db->addQuotes( $cont[1] ); |
|
262 | $this->addWhere( "ar_namespace $op $ns OR " . |
|
263 | "(ar_namespace = $ns AND ar_title $op= $title)" ); |
|
264 | } elseif ( $mode == 'all' ) { |
|
265 | $this->dieContinueUsageIf( count( $cont ) != 4 ); |
|
266 | $ns = intval( $cont[0] ); |
|
267 | $this->dieContinueUsageIf( strval( $ns ) !== $cont[0] ); |
|
268 | $title = $db->addQuotes( $cont[1] ); |
|
269 | $ts = $db->addQuotes( $db->timestamp( $cont[2] ) ); |
|
270 | $ar_id = (int)$cont[3]; |
|
271 | $this->dieContinueUsageIf( strval( $ar_id ) !== $cont[3] ); |
|
272 | $this->addWhere( "ar_namespace $op $ns OR " . |
|
273 | "(ar_namespace = $ns AND " . |
|
274 | "(ar_title $op $title OR " . |
|
275 | "(ar_title = $title AND " . |
|
276 | "(ar_timestamp $op $ts OR " . |
|
277 | "(ar_timestamp = $ts AND " . |
|
278 | "ar_id $op= $ar_id)))))" ); |
|
279 | } else { |
|
280 | $this->dieContinueUsageIf( count( $cont ) != 2 ); |
|
281 | $ts = $db->addQuotes( $db->timestamp( $cont[0] ) ); |
|
282 | $ar_id = (int)$cont[1]; |