Skip to content

Commit 22cf001

Browse files
mia-pi-gitZarel
authored andcommitted
Fix psicon replacement tag in news editor
1 parent 37dd69b commit 22cf001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pokemonshowdown.com/news/manage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function saveNews() {
7070
$summary = str_replace("[b]", '<strong>', $summary);
7171
$summary = str_replace("[/b]", '</strong>', $summary);
7272
$summary = preg_replace('/\[psicon (pokemon|item|type|category)="([^\]]+)"\]/', '<psicon $1="$2" />', $summary);
73-
$summary = preg_replace('/\[psicon (pokemon|item|type|category)=([^\]]+)\]/', '<psicon $1="$2" />', $summary);
73+
$title = preg_replace('/\[psicon (pokemon|item|type|category)=([^\]]+)\]/', '<psicon $1="$2" />', $title);
7474
$summary = '<p>'.$summary.'</p>';
7575

7676
$newsCache[$topic_id]['summary_html'] = $summary;

0 commit comments

Comments
 (0)