Skip to content

Commit

Permalink
TPCFmtTheme: Update same-name redirects as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlgc committed Dec 23, 2022
1 parent d25fb79 commit 5b70073
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hooks/TPCFmtTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public static function onTheme( &$tpcState, &$title, &$id ) {

$text = $content->getText();
if ( $text ) {
$themes[$id] = TouhouThemeDB\Title::sanitize( $text );
$text = TouhouThemeDB\Title::sanitize( $text );
$themes[$id] = $text;
foreach ( array_keys( TouhouThemeDB\Title::REDIRECTS, $id ) as &$id ) {
$themes[$id] = $text;
}
}
}
}

0 comments on commit 5b70073

Please sign in to comment.