|
|
|
@ -149,7 +149,7 @@ class MainController extends AbstractController
@@ -149,7 +149,7 @@ class MainController extends AbstractController
|
|
|
|
|
{ |
|
|
|
|
$index = new \Kvazar\Index\Manticore(); |
|
|
|
|
|
|
|
|
|
$title = $index->get( |
|
|
|
|
$results = $index->get( |
|
|
|
|
'_KEVA_NS_', |
|
|
|
|
[ |
|
|
|
|
'crc32namespace' => crc32( |
|
|
|
@ -158,16 +158,18 @@ class MainController extends AbstractController
@@ -158,16 +158,18 @@ class MainController extends AbstractController
|
|
|
|
|
] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if ($title) |
|
|
|
|
if ($results) |
|
|
|
|
{ |
|
|
|
|
foreach ($results as $result) |
|
|
|
|
{ |
|
|
|
|
if ($result['key'] == '_KEVA_NS_') |
|
|
|
|
{ |
|
|
|
|
$title = reset( |
|
|
|
|
$title |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return trim( |
|
|
|
|
$title['value'] |
|
|
|
|
$result['value'] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|