Forums / Bug Reports / Plugin Installer - "language" typo

Plugin Installer - "language" typo

Started by niccol on 12 Jul 2021, 4:19 PM · Views: 1,666

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

Nick
iszent.com

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Plugin Installer - "language" typo

Fixes applied in GitHub

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.