Modernes Goju-Kai Dojo Theme, visuelles Hauptseiten-Dashboard (Kyu-Wegweiser & Kacheln) und Mobile-Menue
Deploy Development / deploy (push) Successful in 18s

This commit is contained in:
Lars Stommer committed 2026-10-24 22:08:17 +02:00
1 parent b5da977ae1
commit 5e62482c56
5 files changed
+1034 -38

No files matched your search

+24
View File
@@ -134,6 +134,30 @@ class MigrateHtml5MediaTags extends Maintenance {
$tagsReplacedTotal,
$dryRun ? 'gefunden (Dry-Run)' : 'erfolgreich auf [[Datei:...]] umgestellt'
) );
// Bereinige zusätzlich den fehlerhaften Tab-Einzug (<pre>-Box) auf der Hauptseite
$mainTitle = Title::newFromText( 'Hauptseite' );
if ( $mainTitle && !$dryRun ) {
$mainRev = $revisionLookup->getRevisionByTitle( $mainTitle );
if ( $mainRev ) {
$mainContent = $mainRev->getContent( SlotRecord::MAIN );
if ( $mainContent instanceof TextContent ) {
$mainText = $mainContent->getText();
$fixedMain = preg_replace( '/^\s+(Dieses Nachschlagewerk dient)/m', '$1', $mainText );
$fixedMain = str_replace( 'http://www.karate-sv-heilbronn.de/', 'https://karate.hn/', $fixedMain );
if ( $fixedMain !== $mainText ) {
$wp = $wikiPageFactory->newFromTitle( $mainTitle );
$up = $wp->newPageUpdater( $systemUser );
$up->setContent( SlotRecord::MAIN, ContentHandler::makeContent( $fixedMain, $mainTitle ) );
$up->saveRevision(
CommentStoreComment::newUnsavedComment( 'Hauptseite: Formatierungsfehler (<pre>-Einzug) & Vereinslink korrigiert' ),
EDIT_UPDATE | EDIT_MINOR | EDIT_FORCE_BOT | EDIT_SUPPRESS_RC
);
$this->output( "[UPDATE] Hauptseite (<pre>-Einzug & Vereinslink korrigiert)\n" );
}
}
}
}
}
}