p_master::get_module_identifier PHP Method

get_module_identifier() protected method

Firefox is currently unable to correctly copy a urlencoded \ so users will be unable to post links to modules. However we can replace them with dashes and re-replace them later
protected get_module_identifier ( string $basename ) : string
$basename string Basename of the module
return string Identifier that should be used for module link creation
    protected function get_module_identifier($basename)
    {
        if (strpos($basename, '\\') === false) {
            return $basename;
        }
        return str_replace('\\', '-', $basename);
    }