mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
fix: Fixed TorrentPier build-in emojis showing in ACP (#1870)
This commit is contained in:
parent
84e2392896
commit
12792e74f7
1 changed files with 6 additions and 0 deletions
|
@ -341,6 +341,12 @@ class BBCode
|
||||||
$this->smilies = $datastore->get('smile_replacements');
|
$this->smilies = $datastore->get('smile_replacements');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined('IN_ADMIN')) {
|
||||||
|
foreach ($this->smilies['repl'] as &$smile) {
|
||||||
|
$smile = preg_replace('/src="([^"]+)"/', 'src="./../$1"', $smile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->smilies) {
|
if ($this->smilies) {
|
||||||
/** @noinspection NestedPositiveIfStatementsInspection */
|
/** @noinspection NestedPositiveIfStatementsInspection */
|
||||||
if ($parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text)) {
|
if ($parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue