p_master::get_short_name PHP Method

get_short_name() protected method

Retrieve shortened module basename for legacy basenames (with xcp_ prefix)
protected get_short_name ( string $basename ) : string
$basename string A module basename
return string The basename if it starts with phpbb_ or the basename with the current p_class (e.g. acp_) stripped.
    protected function get_short_name($basename)
    {
        if (substr($basename, 0, 6) === 'phpbb\\' || strpos($basename, '\\') !== false) {
            return $basename;
        }
        // strip xcp_ prefix from old classes
        return substr($basename, strlen($this->p_class) + 1);
    }