Update usage of getRedirectSnippet() and getSectionSnippet()
[lhc/web/wiklou.git] / includes / api / ApiQuerySearch.php
index a4db57a..bcf5d91 100644 (file)
@@ -175,7 +175,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                                                $vals['redirecttitle'] = $result->getRedirectTitle();
                                        }
                                        if ( isset( $prop['redirectsnippet'] ) ) {
-                                               $vals['redirectsnippet'] = $result->getRedirectSnippet( $terms );
+                                               $vals['redirectsnippet'] = $result->getRedirectSnippet();
                                        }
                                }
                                if ( !is_null( $result->getSectionTitle() ) ) {