Commit 028b35ab authored by Carsten  Rose's avatar Carsten Rose
Browse files

OnArray: new function inputCheckPatternArray()

Support: check if GLOBALS['TSFE'] really exist.
parent 22cb1d6c
......@@ -93,4 +93,15 @@ class OnArray {
return $result;
}
/**
* @return array
*/
public static function inputCheckPatternArray() {
return [
'min|max' => 'min="%s"|max="%s"',
'pattern' => 'pattern="%s"',
'number' => 'pattern="^[0-9]*$"',
'email' => 'pattern="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$"'
];
}
}
\ No newline at end of file
......@@ -18,8 +18,8 @@ class Support {
public static function appendTypo3ParameterToArray(array &$queryArray) {
// if (isset($_GET['id']))
// $queryArray['id'] = self::getCurrentPage();
$queryArray['id'] = $GLOBALS["TSFE"]->id;
if (isset($GLOBALS["TSFE"]->id))
$queryArray['id'] = $GLOBALS["TSFE"]->id;
if (isset($_GET['L']))
$queryArray['L'] = $_GET['L'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment