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
mahara
mahara
Commits
a652c23d
Commit
a652c23d
authored
Oct 05, 2006
by
Penny Leach
Browse files
fixed calls to get_string (parameter order)
parent
80ca83d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
a652c23d
...
...
@@ -29,7 +29,7 @@ function ensure_sanity() {
// register globals workaround
if
(
ini_get_bool
(
'register_globals'
))
{
trigger_error
(
get_string
(
'
error'
,
'
registerglobals'
),
E_USER_NOTICE
);
trigger_error
(
get_string
(
'registerglobals'
,
'error'
),
E_USER_NOTICE
);
$massivearray
=
array_keys
(
array_merge
(
$_POST
,
$_GET
,
$_COOKIE
,
$_SERVER
,
$_REQUEST
,
$_FILES
));
foreach
(
$massivearray
as
$tounset
)
{
unset
(
$GLOBALS
[
$tounset
]);
...
...
@@ -38,7 +38,7 @@ function ensure_sanity() {
// magic_quotes_gpc workaround
if
(
ini_get_bool
(
'magic_quotes_gpc'
))
{
trigger_error
(
get_string
(
'
error'
,
'
magicquotesgpc'
),
E_USER_NOTICE
);
trigger_error
(
get_string
(
'magicquotesgpc'
,
'error'
),
E_USER_NOTICE
);
function
stripslashes_deep
(
$value
)
{
$value
=
is_array
(
$value
)
?
array_map
(
'stripslashes_deep'
,
$value
)
:
...
...
Write
Preview
Markdown
is supported
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