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
af936298
Commit
af936298
authored
Dec 06, 2006
by
Richard Mansfield
Browse files
Get js strings before generating js
parent
bba52b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/view/index.php
View file @
af936298
...
...
@@ -29,13 +29,10 @@ require(dirname(dirname(__FILE__)) . '/init.php');
$wwwroot
=
get_config
(
'wwwroot'
);
$strings
=
array
(
'accessstartdate'
,
'accessstopdate'
,
'artefacts'
,
'delete'
,
'deleteviewquestion'
,
'description'
,
'editaccess'
,
'editview'
,
'editviewinformation'
,
'submitted'
,
'submitview'
,
'submitviewquestion'
);
$getstring
=
array
();
foreach
(
$strings
as
$string
)
{
$getstring
[
$string
]
=
"'"
.
get_string
(
$string
)
.
"'"
;
}
$getstring
=
quotestrings
(
array
(
'accessstartdate'
,
'accessstopdate'
,
'artefacts'
,
'delete'
,
'deleteviewquestion'
,
'description'
,
'editaccess'
,
'editview'
,
'editviewinformation'
,
'submitted'
,
'submitview'
,
'submitviewquestion'
));
/* This is a slightly dodgy use of the table renderer: I'm outputting
five <tr> elements for each item of data coming from the database.
...
...
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