mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-02-09 13:44:18 +00:00
fix title detection
This commit is contained in:
parent
1200fdf8d0
commit
0105519188
@ -149,7 +149,7 @@ class MainController extends AbstractController
|
|||||||
{
|
{
|
||||||
$index = new \Kvazar\Index\Manticore();
|
$index = new \Kvazar\Index\Manticore();
|
||||||
|
|
||||||
$title = $index->get(
|
$results = $index->get(
|
||||||
'_KEVA_NS_',
|
'_KEVA_NS_',
|
||||||
[
|
[
|
||||||
'crc32namespace' => crc32(
|
'crc32namespace' => crc32(
|
||||||
@ -158,15 +158,17 @@ class MainController extends AbstractController
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($title)
|
if ($results)
|
||||||
{
|
{
|
||||||
$title = reset(
|
foreach ($results as $result)
|
||||||
$title
|
{
|
||||||
);
|
if ($result['key'] == '_KEVA_NS_')
|
||||||
|
{
|
||||||
return trim(
|
return trim(
|
||||||
$title['value']
|
$result['value']
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user