source/Core/ViewHelper/StyleRegistrator.php
protected function formLocalFileUrl($file)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $parts = explode('?', $file);
        $url = $config->getResourceUrl($parts[0], $config->isAdmin());
        $parameters = $parts[1];
        if (empty($parameters)) {
            $path = $config->getResourcePath($file, $config->isAdmin());
            $parameters = filemtime($path);
        }

        if (empty($url) && $config->getConfigParam('iDebug') != 0) {
            $error = "{oxstyle} resource not found: " . getStr()->htmlspecialchars($file);
            trigger_error($error, E_USER_WARNING);
        }

        return $url ? "$url?$parameters" : '';
    }
protected function formLocalFileUrl($file)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $parts = explode('?', $file);
        $url = $config->getResourceUrl($parts[0], $config->isAdmin());
        $parameters = $parts[1];
        if (empty($parameters)) {
            $path = $config->getResourcePath($file, $config->isAdmin());
            $parameters = filemtime($path);
        }

        if (empty($url) && $config->getConfigParam('iDebug') != 0) {
            $error = "{oxstyle} resource not found: " . getStr()->htmlspecialchars($file);
            trigger_error($error, E_USER_WARNING);
        }

        return $url ? "$url?$parameters" : '';
    }
protected function formLocalFileUrl ( $ file ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ parts = explode ( '?' , $ file ) ; $ url = $ config -> getResourceUrl ( $ parts [ 0 ] , $ config -> isAdmin ( ) ) ; $ parameters = $ parts [ 1 ] ; if ( empty ( $ parameters ) ) { $ path = $ config -> getResourcePath ( $ file , $ config -> isAdmin ( ) ) ; $ parameters = filemtime ( $ path ) ; } if ( empty ( $ url ) && $ config -> getConfigParam ( 'iDebug' ) != 0 ) { $ error = "{oxstyle} resource not found: " . getStr ( ) -> htmlspecialchars ( $ file ) ; trigger_error ( $ error , E_USER_WARNING ) ; } return $ url ? "$url?$parameters" : '' ; }
Separate query part, appends query part if needed, append file modification timestamp.

@param string $file

@return string
Separate query part appends query part if needed append file modification timestamp .