Dojo-Dashboard ueber Wiki-Seite Karate:Dashboard direkt im Browser bearbeitbar gemacht
Deploy Development / deploy (push) Successful in 19s
Deploy Development / deploy (push) Successful in 19s
This commit is contained in:
1 parent
5e62482c56
commit
c175e5f230
3 files changed
+329
-173
No files matched your search
@@ -158,6 +158,20 @@ class MigrateHtml5MediaTags extends Maintenance {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Lege die editierbare Konfigurationsseite "Karate:Dashboard" an, falls sie noch nicht existiert
|
||||
$dashTitle = Title::newFromText( \MediaWiki\Extension\KarateMedia\KarateMediaHooks::DASHBOARD_CONFIG_PAGE );
|
||||
if ( $dashTitle && !$dashTitle->exists() && !$dryRun ) {
|
||||
$dashText = \MediaWiki\Extension\KarateMedia\KarateMediaHooks::getDefaultDashboardWikitext();
|
||||
$wpDash = $wikiPageFactory->newFromTitle( $dashTitle );
|
||||
$upDash = $wpDash->newPageUpdater( $systemUser );
|
||||
$upDash->setContent( SlotRecord::MAIN, ContentHandler::makeContent( $dashText, $dashTitle ) );
|
||||
$upDash->saveRevision(
|
||||
CommentStoreComment::newUnsavedComment( 'Initiale Konfigurationsseite für das Dojo-Dashboard angelegt' ),
|
||||
EDIT_NEW | EDIT_MINOR | EDIT_FORCE_BOT | EDIT_SUPPRESS_RC
|
||||
);
|
||||
$this->output( "[CREATE] Karate:Dashboard (Konfigurationsseite angelegt)\n" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user