src/Plugin.php
public static function unload($plugin = null)
    {
        if (self::loaded($plugin)) {
            $locales = Configure::read('App.paths.locales');
            foreach ($locales as $key => $path) {
                if ($path == self::getLocalePath($plugin)) {
                    unset($locales[$key]);
                }
            }

            Configure::write('App.paths.locales', $locales);
        }

        parent::unload($plugin);
    }
public static function unload($plugin = null)
    {
        if (self::loaded($plugin)) {
            $locales = Configure::read('App.paths.locales');
            foreach ($locales as $key => $path) {
                if ($path == self::getLocalePath($plugin)) {
                    unset($locales[$key]);
                }
            }

            Configure::write('App.paths.locales', $locales);
        }

        parent::unload($plugin);
    }
public static function unload ( $ plugin = null ) { if ( self :: loaded ( $ plugin ) ) { $ locales = Configure :: read ( 'App.paths.locales' ) ; foreach ( $ locales as $ key => $ path ) { if ( $ path == self :: getLocalePath ( $ plugin ) ) { unset ( $ locales [ $ key ] ) ; } } Configure :: write ( 'App.paths.locales' , $ locales ) ; } parent :: unload ( $ plugin ) ; }
Unload the plugin.

@param null|string $plugin
@return void
Unload the plugin .