Go to the documentation of this file.
36 $this->leadingContextLines = 2;
37 $this->trailingContextLines = 2;
47 $msg = preg_replace(
'/^ /m',
'  ', $msg );
48 $msg = preg_replace(
'/ $/m',
'  ', $msg );
49 $msg = preg_replace(
'/ /',
'  ', $msg );
62 protected function blockHeader( $xbeg, $xlen, $ybeg, $ylen ) {
63 $r =
'<tr><td colspan="2" class="diff-lineno"><!--LINE ' . $xbeg .
"--></td>\n" .
64 '<td colspan="2" class="diff-lineno"><!--LINE ' . $ybeg .
"--></td></tr>\n";
86 protected function lines(
$lines, $prefix =
' ', $color =
'white' ) {
130 if (
$line !==
'' ) {
135 return "<td class='diff-marker'>$marker</td><td class='$class'>$line</td>";
142 return '<td colspan="2"> </td>';
153 $this->
addedLine(
'<ins class="diffchange">' .
154 htmlspecialchars(
$line ) .
'</ins>' ) .
"</tr>\n";
165 echo
'<tr>' . $this->
deletedLine(
'<del class="diffchange">' .
166 htmlspecialchars(
$line ) .
'</del>' ) .
190 protected function changed( $orig, $closing ) {
194 $del = $diff->orig();
195 $add = $diff->closing();
197 # Notice that WordLevelDiff returns HTML-escaped output.
198 # Hence, we will be calling addedLine/deletedLine without HTML-escaping.
200 while (
$line = array_shift( $del ) ) {
201 $aline = array_shift( $add );
205 foreach ( $add
as $line ) { # If any leftovers
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
wfProfileIn( $functionname)
Begin profiling of a function.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as