74 foreach ( $diff->edits as $edit ) {
75 if ( $edit->type ==
'copy' ) {
76 if ( is_array( $block ) ) {
77 if ( count( $edit->orig ) <= $nlead + $ntrail ) {
81 $context = array_slice( $edit->orig, 0, $ntrail );
84 $this->
block( $x0, $ntrail + $xi - $x0,
85 $y0, $ntrail + $yi - $y0,
92 if ( !is_array( $block ) ) {
105 $xi += count( $edit->orig );
107 if ( $edit->closing ) {
108 $yi += count( $edit->closing );
112 if ( is_array( $block ) ) {
113 $this->
block( $x0, $xi - $x0,
132 protected function block( $xbeg, $xlen, $ybeg, $ylen, &$edits ) {
134 foreach ( $edits as $edit ) {
135 if ( $edit->type ==
'copy' ) {
137 } elseif ( $edit->type ==
'add' ) {
138 $this->
added( $edit->closing );
139 } elseif ( $edit->type ==
'delete' ) {
141 } elseif ( $edit->type ==
'change' ) {
142 $this->
changed( $edit->orig, $edit->closing );
144 throw new MWException(
"Unknown edit type: {$edit->type}" );
160 $this->result .= $text;
183 $xbeg .=
',' . ( $xbeg + $xlen - 1 );
186 $ybeg .=
',' . ( $ybeg + $ylen - 1 );
189 return $xbeg . ( $xlen ? ( $ylen ?
'c' :
'd' ) :
'a' ) . $ybeg;
248 protected function changed( $orig, $closing ) {
251 $this->
added( $closing );
returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters block
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context