viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Attempt to reduce query retrieval time by sending less data in raw=1 case take 4, a=chris

Chris Pollett [2019-07-11 18:Jul:th]
Attempt to reduce query retrieval time by sending less data in raw=1 case take 4, a=chris
Filename
src/models/PhraseModel.php
diff --git a/src/models/PhraseModel.php b/src/models/PhraseModel.php
index 1f668dc1a..7e02696e9 100755
--- a/src/models/PhraseModel.php
+++ b/src/models/PhraseModel.php
@@ -1258,6 +1258,8 @@ class PhraseModel extends ParallelModel
             $result_pages = [];
             foreach ($pages as $p) {
                 $result_page = [
+                    self::HASH => $p[self::HASH],
+                    self::IS_DOC => $p[self::IS_DOC],
                     self::SCORE => $p[self::SCORE],
                     self::USER_RANKS => $p[self::USER_RANKS],
                     self::DOC_RANK => number_format($p[self::DOC_RANK], 4),
ViewGit