public function setInstalled($code, $dirName = null)
    {
        if (!$dirName) {
            $dirName = strtolower(str_replace('.', '-', $code));
        }

        $history = Parameter::get('system::theme.history', []);
        $history[$code] = $dirName;
        Parameter::set('system::theme.history', $history);
    }
public function setInstalled($code, $dirName = null)
    {
        if (!$dirName) {
            $dirName = strtolower(str_replace('.', '-', $code));
        }

        $history = Parameter::get('system::theme.history', []);
        $history[$code] = $dirName;
        Parameter::set('system::theme.history', $history);
    }
public function setInstalled ( $ code , $ dirName = null ) { if ( ! $ dirName ) { $ dirName = strtolower ( str_replace ( '.' , '-' , $ code ) ) ; } $ history = Parameter :: get ( 'system::theme.history' , [ ] ) ; $ history [ $ code ] = $ dirName ; Parameter :: set ( 'system::theme.history' , $ history ) ; }
Flags a theme as being installed, so it is not downloaded twice.
@param string $code Theme code
@param string|null $dirName
Flags a theme as being installed so it is not downloaded twice .