Преглед изворни кода

Search order of filters

For now, process them in the same order as specified by the user
Specifying for instance `date:` first will be much faster than
specifying a free text word first.
https://github.com/marienfressinaud/FreshRSS/issues/511
Alexandre Alapetite пре 12 година
родитељ
комит
d1b31b1a61
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Models/EntryDAO.php

+ 1 - 1
app/Models/EntryDAO.php

@@ -482,7 +482,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
 			$filter = trim($filter);
 			$filter = addcslashes($filter, '\\%_');
 			$terms = array_unique(explode(' ', $filter));
-			sort($terms);	//Put #tags first
+			//sort($terms);	//Put #tags first	//TODO: Put the cheapest filters first
 			foreach ($terms as $word) {
 				$word = trim($word);
 				if (stripos($word, 'intitle:') === 0) {