Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
028b35ab
Commit
028b35ab
authored
Feb 12, 2016
by
Carsten Rose
Browse files
OnArray: new function inputCheckPatternArray()
Support: check if GLOBALS['TSFE'] really exist.
parent
22cb1d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/helper/OnArray.php
View file @
028b35ab
...
...
@@ -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
extension/qfq/qfq/helper/Support.php
View file @
028b35ab
...
...
@@ -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'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment