Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_local_hsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_local_hsh
Commits
bc9297b6
Commit
bc9297b6
authored
3 years ago
by
Julian Wendling
Browse files
Options
Downloads
Patches
Plain Diff
CHANGE save and return return to link after approving a course
parent
0d607747
No related branches found
No related tags found
1 merge request
!1
CHANGE save and return return to link after approving a course
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pending.php
+12
-1
12 additions, 1 deletion
pending.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
13 additions
and
2 deletions
pending.php
+
12
−
1
View file @
bc9297b6
...
@@ -64,7 +64,18 @@ if (!empty($approve) and confirm_sesskey()) {
...
@@ -64,7 +64,18 @@ if (!empty($approve) and confirm_sesskey()) {
if
(
$courseid
!==
false
)
{
if
(
$courseid
!==
false
)
{
if
(
has_capability
(
'moodle/course:update'
,
context_course
::
instance
(
$courseid
)))
{
if
(
has_capability
(
'moodle/course:update'
,
context_course
::
instance
(
$courseid
)))
{
redirect
(
new
moodle_url
(
'/course/edit.php'
,
[
'id'
=>
$courseid
,
'returnto'
=>
'pending'
]));
// > Hsh julian wendling - changed "save and return" link to go back to hsh pending page
$returnurl
=
new
moodle_url
(
$baseurl
);
$saveandbackurl
=
new
moodle_url
(
$CFG
->
wwwroot
.
'/course/edit.php'
,
array
(
'id'
=>
$courseid
,
'sesskey'
=>
sesskey
(),
'returnto'
=>
'url'
,
'returnurl'
=>
$returnurl
->
out
(
false
))
);
redirect
(
new
moodle_url
(
$saveandbackurl
->
out
()));
// < Hsh julian wendling
}
else
{
}
else
{
redirect
(
new
moodle_url
(
'/course/view.php'
,
[
'id'
=>
$courseid
]));
redirect
(
new
moodle_url
(
'/course/view.php'
,
[
'id'
=>
$courseid
]));
}
}
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
bc9297b6
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
component
=
'local_hsh'
;
$plugin
->
component
=
'local_hsh'
;
$plugin
->
version
=
202102230
0
;
$plugin
->
version
=
202102230
1
;
$plugin
->
release
=
'3.3 (Build: 2015042300)'
;
$plugin
->
release
=
'3.3 (Build: 2015042300)'
;
$plugin
->
requires
=
2014051200
;
$plugin
->
requires
=
2014051200
;
$plugin
->
maturity
=
MATURITY_STABLE
;
$plugin
->
maturity
=
MATURITY_STABLE
;
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