Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
4f4a06d9
Commit
4f4a06d9
authored
6 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Code tidy.
parent
444b9f51
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/doc.php
+3
-0
3 additions, 0 deletions
doc/doc.php
plot.php
+2
-0
2 additions, 0 deletions
plot.php
stack/input/ajax.php
+1
-3
1 addition, 3 deletions
stack/input/ajax.php
with
6 additions
and
3 deletions
doc/doc.php
+
3
−
0
View file @
4f4a06d9
...
...
@@ -23,7 +23,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// The docs should be public and not require a login, so we ignore the fact we load config here without a login check.
// @codingStandardsIgnoreStart
require_once
(
__DIR__
.
'/../../../../config.php'
);
// @codingStandardsIgnoreEnd
require_once
(
__DIR__
.
'/docslib.php'
);
/*
...
...
This diff is collapsed.
Click to expand it.
plot.php
+
2
−
0
View file @
4f4a06d9
...
...
@@ -24,6 +24,8 @@
require_once
(
__DIR__
.
'/../../../config.php'
);
require_once
(
$CFG
->
libdir
.
'/filelib.php'
);
require_login
();
$filename
=
clean_filename
(
get_file_argument
());
$filenamesplit
=
explode
(
'.'
,
$filename
);
$filetype
=
end
(
$filenamesplit
);
...
...
This diff is collapsed.
Click to expand it.
stack/input/ajax.php
+
1
−
3
View file @
4f4a06d9
...
...
@@ -29,9 +29,7 @@ $qaid = required_param('qaid', PARAM_INT);
$inputname
=
required_param
(
'name'
,
PARAM_ALPHANUMEXT
);
$inputvalue
=
required_param
(
'input'
,
PARAM_RAW
);
if
(
!
isloggedin
())
{
die
;
}
require_login
();
// This should not be necessary, but the TeX filter requires it, because it uses $OUTPUT.
$PAGE
->
set_context
(
context_system
::
instance
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment