Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.

Fix PHP asciiToShortnameCallback (called on ASCII to shortname conversion)#603

Open
icebird93 wants to merge 1 commit into
joypixels:masterfrom
icebird93:master
Open

Fix PHP asciiToShortnameCallback (called on ASCII to shortname conversion)#603
icebird93 wants to merge 1 commit into
joypixels:masterfrom
icebird93:master

Conversation

@icebird93

Copy link
Copy Markdown

When converting ASCII smileys using asciiToShortname, asciiToShortnameCallback is called. This function executes array_flip(array_reverse($ruleset->getShortcodeReplace())); that always results in an empty array, replacing ASCII smileys with empty strings.
Also, function should return shortnames for smileys and not their unicode equivalents, therefore only $ascii_replace is needed.

Fix PHP function asciiToShortnameCallback replacement
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant