$id, 'NEWPAGE' => wl($id, $current_rev ? ('rev=' . $current_rev) : '', true, '&'), 'SUMMARY' => $summary, 'SUBSCRIBE' => wl($id, ['do' => 'subscribe'], true, '&'), ]; $hrep = []; if ($rev) { $subject = 'changed'; $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&'); $old_content = rawWiki($id, $rev); $new_content = rawWiki($id); $df = new Diff( explode("\n", $old_content), explode("\n", $new_content) ); $dformat = new UnifiedDiffFormatter(); $tdiff = $dformat->format($df); $DIFF_INLINESTYLES = true; $df = new Diff( explode("\n", $old_content), explode("\n", $new_content) ); $dformat = new InlineDiffFormatter(); $hdiff = $dformat->format($df); $hdiff = '