| ... | ... |
@@ -25,7 +25,7 @@ $request = System::getContainer()->get('request_stack')->getCurrentRequest();
|
| 25 | 25 |
/** @var ScopeMatcher $scopeMatcher */ |
| 26 | 26 |
$scopeMatcher = System::getContainer()->get('contao.routing.scope_matcher');
|
| 27 | 27 |
|
| 28 |
-if ($scopeMatcher->isFrontendRequest($request)) |
|
| 28 |
+if ($request !== null && $scopeMatcher->isFrontendRequest($request)) |
|
| 29 | 29 |
{
|
| 30 | 30 |
$GLOBALS['TL_LANG']['MSC']['confirmation'] = 'Passwort wiederholen'; |
| 31 | 31 |
} |
| ... | ... |
@@ -16,7 +16,16 @@ |
| 16 | 16 |
* Miscellaneous |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-if (TL_MODE == 'FE') |
|
| 19 |
+use Contao\CoreBundle\Routing\ScopeMatcher; |
|
| 20 |
+use Contao\System; |
|
| 21 |
+use Symfony\Component\HttpFoundation\Request; |
|
| 22 |
+ |
|
| 23 |
+/** @var Request $request */ |
|
| 24 |
+$request = System::getContainer()->get('request_stack')->getCurrentRequest();
|
|
| 25 |
+/** @var ScopeMatcher $scopeMatcher */ |
|
| 26 |
+$scopeMatcher = System::getContainer()->get('contao.routing.scope_matcher');
|
|
| 27 |
+ |
|
| 28 |
+if ($scopeMatcher->isFrontendRequest($request)) |
|
| 20 | 29 |
{
|
| 21 | 30 |
$GLOBALS['TL_LANG']['MSC']['confirmation'] = 'Passwort wiederholen'; |
| 22 |
-} |
|
| 23 | 31 |
\ No newline at end of file |
| 32 |
+} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,22 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+/** |
|
| 4 |
+ * eSales Media Formilicious for Contao Open Source CMS |
|
| 5 |
+ * |
|
| 6 |
+ * Copyright (C) 2013-2014 eSalesMedia |
|
| 7 |
+ * |
|
| 8 |
+ * @package eSM_formilicious |
|
| 9 |
+ * @link http://www.esales-media.de |
|
| 10 |
+ * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL |
|
| 11 |
+ * |
|
| 12 |
+ * @author Benjamin Roth <benjamin@esales-media.de> |
|
| 13 |
+ */ |
|
| 14 |
+ |
|
| 15 |
+/** |
|
| 16 |
+ * Miscellaneous |
|
| 17 |
+ */ |
|
| 18 |
+ |
|
| 19 |
+if (TL_MODE == 'FE') |
|
| 20 |
+{
|
|
| 21 |
+ $GLOBALS['TL_LANG']['MSC']['confirmation'] = 'Passwort wiederholen'; |
|
| 22 |
+} |
|
| 0 | 23 |
\ No newline at end of file |