Merge "Fix Undefined variable issue in ApiQueryUserContributions"
[lhc/web/wiklou.git] / includes / content / CodeContentHandler.php
index 447a2a7..2bbf6ca 100644 (file)
@@ -58,8 +58,17 @@ abstract class CodeContentHandler extends TextContentHandler {
 
        /**
         * @return string
+        * @throws MWException
         */
        protected function getContentClass() {
                throw new MWException( 'Subclass must override' );
        }
+
+       /**
+        * @param SearchEngine $engine
+        * @return array
+        */
+       public function getFieldsForSearchIndex( SearchEngine $engine ) {
+               return [];
+       }
 }