public static function rebaseConfiguration(Config $config, $base_url)
    {
        // Avoid changing the url if it is already correct
        if ($config['base_url'] == $base_url && !empty($config['theme'])) {
            return;
        }

        // Change base url for all links on the pages
        $config['base_url'] = $config['base_page'] = $base_url;
        $config['theme'] = static::getTheme($config, $base_url);
        $config['image'] = str_replace('<base_url>', $base_url, $config['image']);
    }
public static function rebaseConfiguration(Config $config, $base_url)
    {
        // Avoid changing the url if it is already correct
        if ($config['base_url'] == $base_url && !empty($config['theme'])) {
            return;
        }

        // Change base url for all links on the pages
        $config['base_url'] = $config['base_page'] = $base_url;
        $config['theme'] = static::getTheme($config, $base_url);
        $config['image'] = str_replace('<base_url>', $base_url, $config['image']);
    }
public static function rebaseConfiguration ( Config $ config , $ base_url ) { // Avoid changing the url if it is already correct if ( $ config [ 'base_url' ] == $ base_url && ! empty ( $ config [ 'theme' ] ) ) { return ; } // Change base url for all links on the pages $ config [ 'base_url' ] = $ config [ 'base_page' ] = $ base_url ; $ config [ 'theme' ] = static :: getTheme ( $ config , $ base_url ) ; $ config [ 'image' ] = str_replace ( '<base_url>' , $ base_url , $ config [ 'image' ] ) ; }
Set a new base_url for the configuration

@param Config $config
@param string $base_url
Set a new base_url for the configuration