LesSix, Ltm, Soleiade, Trois, Robots, Bureaucrates, Administrateurs d’interface, ltm, soleil, Modérateurs, Administrateurs, trois, Modificateurs de widgets
5 464
modifications
(Patching MediaWiki (1.10 - 1.12)) |
|||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 20 : | Ligne 20 : | ||
MediaWiki 1.10 - 1.12 users have to add this hook manually. | 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: | In <span style="background-color: rgb(255, 255, 0);">includes/EditPage.php</span>, at the end of showEditForm function, find this code: | ||
<pre>$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); | <pre>$wgOut->addHtml( wfHidden( 'wpAutoSummary', $autosumm ) ); | ||
Ligne 29 : | Ligne 29 : | ||
if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) { | if ( $this->isConflict && wfRunHooks( 'EditPageBeforeConflictDiff', array( &$this, &$wgOut ) )) { | ||
</pre> | </pre> | ||
=== SanitizerAfterFixTagAttributes === | === SanitizerAfterFixTagAttributes === | ||
Ligne 36 : | Ligne 37 : | ||
MediaWiki 1.10 - 1.12 users have to add this hook manually. | 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: | In <span style="background-color: rgb(255, 255, 0);">includes/Sanitizer.php</span>, at the end of fixTagAttributes function, find this code: | ||
<pre>return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : ''; | <pre>return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : ''; | ||
</pre> | </pre> |
modifications