SMF
SMF copied to clipboard
[3.0]: Language files are not removed on mods deleting
Basic Information
Steps to reproduce
- Install any mod with hooks and language files for SMF 2.1
- Try to uninstall it
Expected result
<remove-dir name="$languagedir/modname" />
I think that we need to check both paths on deleting: $boarddir/Languages
, and $themedir/languages
(if compatibility mode is enabled)
Actual result
No response
Version/Git revision
3.0 Alpha 2
Database Engine
MySQL
Database Version
10.11.6-MariaDB
PHP Version
8.0.30
Logs
No response
Additional Information
No response
You are correct, I will look into this when I get a chance unless somebody else gets a chance. This may not be the cleanest logic, but would only need to be done when we are running in compatibility mode.
I cannot reproduce this myself.
@dragomano, does the issue still exist for you? Perhaps more recent changes have solved it already, but I don't know.
What mods did you use for testing?
P. S. I have installed the current version for testing and got an error on the Package manage index area - "Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in PackageManager\PackageManager.php:1639", fix - replace "$items = Utils::jsonDecode($data['data'], true);" with "$items = Utils::jsonDecode($data['data'], true) ?? [];"
Several of my own. Can you give me a mod that does produce the error? Then I can figure out what is causing it.
Try to install the Simillar Topics, in the compatibility mode.