Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
16327d7b
Commit
16327d7b
authored
4 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Fixed undefined variables notices.
parent
14450ae7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
locallib.php
+4
-0
4 additions, 0 deletions
locallib.php
with
5 additions
and
0 deletions
CHANGES.md
+
1
−
0
View file @
16327d7b
...
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
*
2020-08-12 - Fixed undefined variables notices.
*
2020-08-11 - Added setting to be able to show a hint for a unrestricted self enrolment in a visible course.
NOTE: Capability theme/boost_campus:viewhintcourseselfenrol introduced.
*
2020-08-07 - Added rule to show description border for all users for restricted activities.
...
...
This diff is collapsed.
Click to expand it.
locallib.php
+
4
−
0
View file @
16327d7b
...
...
@@ -499,13 +499,17 @@ function theme_boost_campus_show_timed_banner_on_selected_page($now, $timedibsho
// Check if time settings are empty and try to convert the time string_s_ to a unix timestamp.
if
(
empty
(
$timedibstartsetting
))
{
$timedibstartempty
=
true
;
$timedibstart
=
0
;
}
else
{
$timedibstart
=
strtotime
(
$timedibstartsetting
);
$timedibstartempty
=
false
;
}
if
(
empty
(
$timedibendsetting
))
{
$timedibendempty
=
true
;
$timedibend
=
0
;
}
else
{
$timedibend
=
strtotime
(
$timedibendsetting
);
$timedibendempty
=
false
;
}
// Add the time check:
...
...
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