mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 21:10:31 +02:00
remove global and change $user-> to phpbb::$user->
git-svn-id: file:///svn/phpbb/trunk@9334 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -598,15 +598,13 @@ class diff_renderer_side_by_side extends diff_renderer
|
||||
*/
|
||||
function get_diff_content($diff)
|
||||
{
|
||||
global $user;
|
||||
|
||||
$output = '';
|
||||
$output .= '<table cellspacing="0" class="hrdiff">
|
||||
<caption>
|
||||
<span class="unmodified"> </span> ' . $user->lang['LINE_UNMODIFIED'] . '
|
||||
<span class="added"> </span> ' . $user->lang['LINE_ADDED'] . '
|
||||
<span class="modified"> </span> ' . $user->lang['LINE_MODIFIED'] . '
|
||||
<span class="removed"> </span> ' . $user->lang['LINE_REMOVED'] . '
|
||||
<span class="unmodified"> </span> ' . phpbb::$user->lang['LINE_UNMODIFIED'] . '
|
||||
<span class="added"> </span> ' . phpbb::$user->lang['LINE_ADDED'] . '
|
||||
<span class="modified"> </span> ' . phpbb::$user->lang['LINE_MODIFIED'] . '
|
||||
<span class="removed"> </span> ' . phpbb::$user->lang['LINE_REMOVED'] . '
|
||||
</caption>
|
||||
<tbody>
|
||||
';
|
||||
@@ -616,14 +614,14 @@ class diff_renderer_side_by_side extends diff_renderer
|
||||
// Is the diff empty?
|
||||
if (!sizeof($this->lines))
|
||||
{
|
||||
$output .= '<tr><th colspan="2">' . $user->lang['NO_VISIBLE_CHANGES'] . '</th></tr>';
|
||||
$output .= '<tr><th colspan="2">' . phpbb::$user->lang['NO_VISIBLE_CHANGES'] . '</th></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Iterate through every header block of changes
|
||||
foreach ($this->lines as $header)
|
||||
{
|
||||
$output .= '<tr><th>' . $user->lang['LINE'] . ' ' . $header['oldline'] . '</th><th>' . $user->lang['LINE'] . ' ' . $header['newline'] . '</th></tr>';
|
||||
$output .= '<tr><th>' . phpbb::$user->lang['LINE'] . ' ' . $header['oldline'] . '</th><th>' . phpbb::$user->lang['LINE'] . ' ' . $header['newline'] . '</th></tr>';
|
||||
|
||||
// Each header block consists of a number of changes (add, remove, change).
|
||||
$current_context = '';
|
||||
|
Reference in New Issue
Block a user