protected function prepareFileName($filename, $extension)
    {
        if ($this->config->get('file_upload_translit', 1)) {
            $filename = $this->language->translit($filename, null);
        }

        $suffix = gplcart_string_random(6);
        $clean = gplcart_file_sanitize($filename);
        return "$clean-$suffix.$extension";
    }
protected function prepareFileName($filename, $extension)
    {
        if ($this->config->get('file_upload_translit', 1)) {
            $filename = $this->language->translit($filename, null);
        }

        $suffix = gplcart_string_random(6);
        $clean = gplcart_file_sanitize($filename);
        return "$clean-$suffix.$extension";
    }
protected function prepareFileName ( $ filename , $ extension ) { if ( $ this -> config -> get ( 'file_upload_translit' , 1 ) ) { $ filename = $ this -> language -> translit ( $ filename , null ) ; } $ suffix = gplcart_string_random ( 6 ) ; $ clean = gplcart_file_sanitize ( $ filename ) ; return "$clean-$suffix.$extension" ; }
Sanitize and transliterate a filename
@param string $filename
@param string $extension
@return string
Sanitize and transliterate a filename