1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00

fix sphinx for 0.9.9 version

This commit is contained in:
Mzhelskiy Maxim 2010-02-04 15:39:11 +00:00
parent 8eb2e75ad9
commit c1053aba62

View file

@ -13,6 +13,10 @@ class LsSphinx extends Module {
*
*/
public function Init() {
$this->InitSphinx();
}
protected function InitSphinx() {
/**
* Получаем объект Сфинкса(из Сфинкс АПИ)
*/
@ -55,6 +59,7 @@ class LsSphinx extends Module {
*/
$cacheKey = Config::Get('module.search.entity_prefix')."searchResult_{$sObjType}_{$sTerms}_{$iOffset}_{$iLimit}";
if (false === ($data = $this->Cache_Get($cacheKey))) {
$this->InitSphinx();
/**
* Параметры поиска
*/