1
0
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:
Meik Sievertsen
2009-02-22 15:29:18 +00:00
parent 7aced345c5
commit 794c574969
107 changed files with 3120 additions and 3644 deletions

View File

@@ -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">&nbsp;</span> ' . $user->lang['LINE_UNMODIFIED'] . '
<span class="added">&nbsp;</span> ' . $user->lang['LINE_ADDED'] . '
<span class="modified">&nbsp;</span> ' . $user->lang['LINE_MODIFIED'] . '
<span class="removed">&nbsp;</span> ' . $user->lang['LINE_REMOVED'] . '
<span class="unmodified">&nbsp;</span> ' . phpbb::$user->lang['LINE_UNMODIFIED'] . '
<span class="added">&nbsp;</span> ' . phpbb::$user->lang['LINE_ADDED'] . '
<span class="modified">&nbsp;</span> ' . phpbb::$user->lang['LINE_MODIFIED'] . '
<span class="removed">&nbsp;</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 = '';