12 Jul 2021, 4:19 PM
Totally Zenned
- Join Date:
- Apr 2009
- Posts:
- 2,138
- Plugin Contributions:
- 1
Plugin Installer - "language" typo
In BasePluginInstaller.php
protected function loadInstallerLanguageFile($file)
{
$lng = $_SESSION['language'];
$filename = $this->pluginDir . '/installer/langauages/' . $lng . '/' . $file;
if (file_exists($filename)) {
require_once($filename);
}
}
Should be 'Installer/languages' - so, uppercase I for Installer and a typo on languages.
Also, the indentation on the description in https://docs.zen-cart.com/dev/plugins/encapsulated_plugins/plugin_language_files/ is incorrect but that is a minor issue. Languages should be indented more than Installer