Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
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-tool_lifecycle
Commits
09940e45
Commit
09940e45
authored
5 years ago
by
Justus Dieckmann
Committed by
Tobias Reischmann
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use $this->output/page instead of globals in renderer
parent
faf8b52b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
renderer.php
+4
-6
4 additions, 6 deletions
renderer.php
with
4 additions
and
6 deletions
renderer.php
+
4
−
6
View file @
09940e45
...
@@ -36,8 +36,7 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
...
@@ -36,8 +36,7 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
* Write the page footer
* Write the page footer
*/
*/
public
function
footer
()
{
public
function
footer
()
{
global
$OUTPUT
;
echo
$this
->
output
->
footer
();
echo
$OUTPUT
->
footer
();
}
}
/**
/**
...
@@ -46,12 +45,11 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
...
@@ -46,12 +45,11 @@ class tool_lifecycle_renderer extends plugin_renderer_base {
* @param string $title optional page title.
* @param string $title optional page title.
*/
*/
public
function
header
(
$title
=
null
)
{
public
function
header
(
$title
=
null
)
{
global
$OUTPUT
,
$PAGE
;
echo
$this
->
output
->
header
();
echo
$OUTPUT
->
header
();
if
(
$title
)
{
if
(
$title
)
{
echo
$
OUTPUT
->
heading
(
$title
);
echo
$
this
->
output
->
heading
(
$title
);
}
else
{
}
else
{
echo
$
OUTPUT
->
heading
(
$
PAGE
->
heading
);
echo
$
this
->
output
->
heading
(
$
this
->
page
->
heading
);
}
}
}
}
...
...
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