Fix small issue reenabling intro [skip ci]

This commit is contained in:
James Cole 2017-07-23 07:35:30 +02:00
parent 19e7a76f85
commit 2c00a8353d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 4 additions and 2 deletions

View File

@ -69,6 +69,7 @@ class IntroController
return in_array('outro', $keys); return in_array('outro', $keys);
} }
/** /**
* @param string $route * @param string $route
* @param string $specialPage * @param string $specialPage
@ -77,7 +78,8 @@ class IntroController
*/ */
public function postEnable(string $route, string $specialPage = '') public function postEnable(string $route, string $specialPage = '')
{ {
$key = 'shown_demo_' . $route; $route = str_replace('.', '_', $route);
$key = 'shown_demo_' . $route;
if ($specialPage !== '') { if ($specialPage !== '') {
$key .= '_' . $specialPage; $key .= '_' . $specialPage;
} }

View File

@ -66,7 +66,7 @@
<li class="hidden-sm hidden-xs"> <li class="hidden-sm hidden-xs">
<a href="#" id="help" data-route="{{ original_route_name }}" data-extra="{{ what|default("") }}"> <a href="#" id="help" data-route="{{ original_route_name }}" data-extra="{{ what|default("") }}">
<i class="fa fa-question-circle" data-route="{{ original_route_name }}"></i> <i class="fa fa-question-circle" data-route="{{ original_route_name }}" data-extra="{{ what|default("") }}"></i>
</a> </a>
</li> </li>