XF 2.3 Wqay to remove a system message for unexpected content?

Bubstar

Member
Hi there!
I see the following error in my admin panel

There are 1 missing files or files with unexpected contents. You should review these.

When I click on that erro I see that :

Check completed on 15,062 files. The files listed below have contents different from those originally downloaded.

If you have edited these files yourself, you may ignore this message, otherwise you should investigate further as this may be evidence of corrupted or altered files.
The file is src/addons/KL/EditorManager/XF/Str/Formatter.php

Now if I understand fine that's because of the new BBcode I've add, everything works fine, I've double check for errors the file and everything looks ok, so as the text says I must ignore the message.
That's ok but is there anyway to remove that message at all because that's annoying to see it always I enter there?
 
There's no way to remove it, your options are to create an addon which extends the Formatter class with your custom code or to ignore the admin panel warning

EDIT: You could actually remove the hash from /src/addons/KL/EditorManager/hashes.json for Formatter.php and the file health check will ignore this file in the future, but it's not the ideal way of dealing with this situation
 
Back
Top Bottom