Last active
December 24, 2018 15:08
-
-
Save cyberalien/b3295a0392d92ce159f59da6e138f858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Include Iconify code */ | |
$iconifyConfigFile = __DIR__ . '/addons/Iconify/Iconify/config.php'; | |
if (@file_exists($iconifyConfigFile)) | |
{ | |
require($iconifyConfigFile); | |
} | |
/* End of Iconify code */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Iconify Integration add-on creates new XenForo template engine tags. Because of that add-on must always be available as if it was part of XenForo core. That means add-on should run even when event listeners are disabled and add-ons are being installed/uninstalled or XenForo might throw errors.
Because of that add-on installation requires adding code to src/config.php that will make sure XenForo template engine always has Iconify tags available, so templates are always displayed properly.
If your src/config.php is writable, add-on will add all necessary code on installation, so you do not need to do anything. Add-on will also remove that code when its uninstalled. How to know if src/config.php is writable? Try to install add-on, it will show error if file is not writable.
If your src/config.php is not writable by PHP, you need to add code yourself.
How to add code to src/config.php:
If you are uninstalling Iconify Integration add-on, make sure you uninstall all add-ons and styles that depend on it first. Then you can uninstall Iconify Integration add-on and after that you can remove code from src/config.php.