|
|
@ -102,10 +102,13 @@ class ModuleController extends AbstractController |
|
|
|
// Create rooms list |
|
|
|
// Create rooms list |
|
|
|
$list = []; |
|
|
|
$list = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->getParameter('app.kevacoin.room.namespaces.pinned')) |
|
|
|
|
|
|
|
{ |
|
|
|
foreach ((array) explode('|', $this->getParameter('app.kevacoin.room.namespaces.pinned')) as $room) |
|
|
|
foreach ((array) explode('|', $this->getParameter('app.kevacoin.room.namespaces.pinned')) as $room) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$list[] = $room; |
|
|
|
$list[] = $room; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Append custom valid namespace to the rooms list menu |
|
|
|
// Append custom valid namespace to the rooms list menu |
|
|
|
if (!in_array($request->get('namespace'), $list) && preg_match('/^N[A-z0-9]{33}$/', $request->get('namespace'))) |
|
|
|
if (!in_array($request->get('namespace'), $list) && preg_match('/^N[A-z0-9]{33}$/', $request->get('namespace'))) |
|
|
|