Extension:FCKeditor (Official)/Manual modifications
From MediaWiki.org
[edit] MediaWiki 1.10 - 1.12
[edit] EditPageBeforeEditConflict
In the latest MediaWiki (1.13, SVN version), new hook EditPageBeforeEditConflict is already available. This hook is required to fix WikiText/HTML problems when conflict occurs.
MediaWiki 1.10 - 1.12 users have to add this hook manually.
In includes/EditPage.php, at the end of showEditForm function, find this code:
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); if ( $this->isConflict ) {
and replace with:
$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) {
[edit] SanitizerAfterFixTagAttributes
In MediaWiki 1.13, new hook SanitizerAfterFixTagAttributes is already available. This hook is required to keep templates defining tag attributes.
MediaWiki 1.10 - 1.12 users have to add this hook manually.
In includes/Sanitizer.php, at the end of fixTagAttributes function, find this code:
return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';
and replace it with:
if ( !wfRunHooks( 'SanitizerAfterFixTagAttributes', array( $text, $element, &$attribs ) ) ) { return ''; } return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';