Zen Cart Logo
Forums / Bug Reports / Plugin Installer - "language" typo

Plugin Installer - "language" typo

Views: 1,646

Results 1 to 2 of 2
12 Jul 2021, 4:19 PM
#1
niccol avatar

niccol

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

13 Jul 2021, 5:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Plugin Installer - "language" typo

Fixes applied in GitHub