Fix wrong variable in ShowSearchHit call.
authorStanislav Malyshev <smalyshev@gmail.com>
Wed, 8 Nov 2017 00:33:38 +0000 (16:33 -0800)
committerStanislav Malyshev <smalyshev@gmail.com>
Wed, 8 Nov 2017 00:33:38 +0000 (16:33 -0800)
The code uses $size, which does not exist and never used otherwise.
The actual size HTML is stored in $desc.

Change-Id: Ida5e69c81acea6bdec75810cf7b192f9dc7cf327

includes/widget/search/FullSearchResultWidget.php

index 4c98399..5e45c63 100644 (file)
@@ -79,7 +79,7 @@ class FullSearchResultWidget implements SearchResultWidget {
                        if ( !Hooks::run( 'ShowSearchHit', [
                                $this->specialPage, $result, $terms,
                                &$link, &$redirect, &$section, &$extract,
-                               &$score, &$size, &$date, &$related, &$html
+                               &$score, &$desc, &$date, &$related, &$html
                        ] ) ) {
                                return $html;
                        }