mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +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:
@@ -439,8 +439,6 @@ class diff3 extends diff
|
||||
*/
|
||||
function merged_output($label1 = 'CURRENT_FILE', $label2 = 'NEW_FILE', $label_sep = 'DIFF_SEP_EXPLAIN', $get_conflicts = false, $merge_new = false)
|
||||
{
|
||||
global $user;
|
||||
|
||||
if ($get_conflicts)
|
||||
{
|
||||
foreach ($this->_edits as $edit)
|
||||
@@ -454,9 +452,9 @@ class diff3 extends diff
|
||||
return $this->_conflicting_blocks;
|
||||
}
|
||||
|
||||
$label1 = (!empty($user->lang[$label1])) ? $user->lang[$label1] : $label1;
|
||||
$label2 = (!empty($user->lang[$label2])) ? $user->lang[$label2] : $label2;
|
||||
$label_sep = (!empty($user->lang[$label_sep])) ? $user->lang[$label_sep] : $label_sep;
|
||||
$label1 = (!empty(phpbb::$user->lang[$label1])) ? phpbb::$user->lang[$label1] : $label1;
|
||||
$label2 = (!empty(phpbb::$user->lang[$label2])) ? phpbb::$user->lang[$label2] : $label2;
|
||||
$label_sep = (!empty(phpbb::$user->lang[$label_sep])) ? phpbb::$user->lang[$label_sep] : $label_sep;
|
||||
|
||||
$lines = array();
|
||||
|
||||
|
@@ -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