Index: trunk/phase3/includes/SpecialWhatlinkshere.php |
— | — | @@ -113,9 +113,9 @@ |
114 | 114 | // with an is_template field in the output indicating which one the link |
115 | 115 | // came from |
116 | 116 | $sql = "(SELECT page_id,page_namespace, page_title, page_is_redirect, 1 as is_template " . |
117 | | - "FROM page, templatelinks WHERE $tlCond $offsetCond) " . |
| 117 | + "FROM page, templatelinks WHERE $tlCond $offsetCond $options) " . |
118 | 118 | "UNION (SELECT page_id,page_namespace, page_title, page_is_redirect, 0 as is_template " . |
119 | | - "FROM page, pagelinks WHERE $plCond $offsetCond) $options"; |
| 119 | + "FROM page, pagelinks WHERE $plCond $offsetCond $options) $options"; |
120 | 120 | $res = $dbr->query( $sql, $fname ); |
121 | 121 | $numRows = $dbr->numRows( $res ); |
122 | 122 | |