Skip to content

Commit

Permalink
fix Ui\Diff::diffHead() scope public
Browse files Browse the repository at this point in the history
html_diff_head() was used in inc/media.php
  • Loading branch information
ssahara committed Jul 19, 2020
1 parent c2bf454 commit fd76e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/Ui/Diff.php
Expand Up @@ -242,7 +242,7 @@ public function show()
* @param bool $inline Return the header on a single line
* @return string[] HTML snippets for diff header
*/
protected function diffHead($l_rev, $r_rev, $id = null, $media = false, $inline = false)
public function diffHead($l_rev, $r_rev, $id = null, $media = false, $inline = false)
{
global $lang;
if ($id === null) {
Expand Down
2 changes: 1 addition & 1 deletion inc/media.php
Expand Up @@ -1338,7 +1338,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){
}
}

list($l_head, $r_head) = html_diff_head($l_rev, $r_rev, $image, true);
list($l_head, $r_head) = (new dokuwiki\Ui\Diff)->diffHead($l_rev, $r_rev, $image, true);

?>
<div class="table">
Expand Down

0 comments on commit fd76e02

Please sign in to comment.