@@ -69,6 +69,8 @@ function saveNews() {
69
69
$ summary = str_replace ("[/url] " , '</a> ' , $ summary );
70
70
$ summary = str_replace ("[b] " , '<strong> ' , $ summary );
71
71
$ summary = str_replace ("[/b] " , '</strong> ' , $ summary );
72
+ $ 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 );
72
74
$ summary = '<p> ' .$ summary .'</p> ' ;
73
75
74
76
$ newsCache [$ topic_id ]['summary_html ' ] = $ summary ;
@@ -88,6 +90,8 @@ function saveNews() {
88
90
$ details = str_replace ("[/url] " , '</a> ' , $ details );
89
91
$ details = str_replace ("[b] " , '<strong> ' , $ details );
90
92
$ details = str_replace ("[/b] " , '</strong> ' , $ details );
93
+ $ details = preg_replace ('/\[psicon (pokemon|item|type|category)="([^\]]+)"\]/ ' , '<psicon $1="$2" /> ' , $ details );
94
+ $ details = preg_replace ('/\[psicon (pokemon|item|type|category)=([^\]]+)\]/ ' , '<psicon $1="$2" /> ' , $ details );
91
95
$ details = '<p> ' .$ details .'</p> ' ;
92
96
$ newsCache [$ topic_id ]['details_html ' ] = $ details ;
93
97
} else {
0 commit comments