Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
learning_plan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
moodle
learning_plan
Commits
5bed9299
Commit
5bed9299
authored
Oct 11, 2013
by
3i Logic LMS
Browse files
Options
Downloads
Patches
Plain Diff
Removed require parameter issue
parent
cb852daf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
block_learning_plan.php
+8
-2
8 additions, 2 deletions
block_learning_plan.php
with
8 additions
and
2 deletions
block_learning_plan.php
+
8
−
2
View file @
5bed9299
...
...
@@ -43,7 +43,10 @@ class block_learning_plan extends block_base {
$this
->
content
=
new
stdClass
;
if
(
has_capability
(
'block/learning_plan:managepages'
,
$this
->
context
))
{
$pageurl
=
new
moodle_url
(
'/blocks/learning_plan/view.php?viewpage='
);
$pageurl
=
new
moodle_url
(
'/blocks/learning_plan/view.php?viewpage'
);
if
(
!
strpos
(
$pageurl
,
'='
))
{
$pageurl
.
=
'='
;
}
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
'1'
,
get_string
(
'learningpath'
,
'block_learning_plan'
))
.
'<br>'
;
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
'2'
,
get_string
(
'add_training'
,
'block_learning_plan'
))
.
'<br>'
;
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
'4'
,
get_string
(
'assign_training_learningplan'
,
'block_learning_plan'
))
.
'<br>'
;
...
...
@@ -51,7 +54,10 @@ class block_learning_plan extends block_base {
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
'6'
,
get_string
(
'trainingstatus'
,
'block_learning_plan'
))
.
'<br>'
;
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
'7'
,
get_string
(
'search'
,
'block_learning_plan'
));
}
else
if
(
has_capability
(
'block/learning_plan:viewpages'
,
$this
->
context
))
{
$pageurl
=
new
moodle_url
(
'/blocks/learning_plan/student/view.php?id='
);
$pageurl
=
new
moodle_url
(
'/blocks/learning_plan/student/view.php?id'
);
if
(
!
strpos
(
$pageurl
,
'='
))
{
$pageurl
.
=
'='
;
}
$learning_plan
=
user_learningplan
(
$USER
->
id
);
foreach
(
$learning_plan
as
$lp
)
{
$this
->
content
->
text
.
=
html_writer
::
link
(
$pageurl
.
$lp
->
id
,
$lp
->
learningplan
)
.
'<br>'
;
...
...
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