From 794c5749696c9fa2595ed3a1d7c836a0d984e11c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 22 Feb 2009 15:29:18 +0000 Subject: remove global and change $user-> to phpbb::$user-> git-svn-id: file:///svn/phpbb/trunk@9334 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/diff/renderer.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/diff/renderer.php') diff --git a/phpBB/includes/diff/renderer.php b/phpBB/includes/diff/renderer.php index 7f7a3366b1..8194b63da6 100644 --- a/phpBB/includes/diff/renderer.php +++ b/phpBB/includes/diff/renderer.php @@ -598,15 +598,13 @@ class diff_renderer_side_by_side extends diff_renderer */ function get_diff_content($diff) { - global $user; - $output = ''; $output .= ' '; @@ -616,14 +614,14 @@ class diff_renderer_side_by_side extends diff_renderer // Is the diff empty? if (!sizeof($this->lines)) { - $output .= ''; + $output .= ''; } else { // Iterate through every header block of changes foreach ($this->lines as $header) { - $output .= ''; + $output .= ''; // Each header block consists of a number of changes (add, remove, change). $current_context = ''; -- cgit v1.2.1
-   ' . $user->lang['LINE_UNMODIFIED'] . ' -   ' . $user->lang['LINE_ADDED'] . ' -   ' . $user->lang['LINE_MODIFIED'] . ' -   ' . $user->lang['LINE_REMOVED'] . ' +   ' . phpbb::$user->lang['LINE_UNMODIFIED'] . ' +   ' . phpbb::$user->lang['LINE_ADDED'] . ' +   ' . phpbb::$user->lang['LINE_MODIFIED'] . ' +   ' . phpbb::$user->lang['LINE_REMOVED'] . '
' . $user->lang['NO_VISIBLE_CHANGES'] . '
' . phpbb::$user->lang['NO_VISIBLE_CHANGES'] . '
' . $user->lang['LINE'] . ' ' . $header['oldline'] . '' . $user->lang['LINE'] . ' ' . $header['newline'] . '
' . phpbb::$user->lang['LINE'] . ' ' . $header['oldline'] . '' . phpbb::$user->lang['LINE'] . ' ' . $header['newline'] . '