Merge branch 'master' into testing
This commit is contained in:
commit
3cb6b1670b
@ -439,7 +439,7 @@ class HTMLOutputter extends XMLOutputter
|
|||||||
{
|
{
|
||||||
if(Event::handle('StartCssLinkElement', array($this,&$src,&$theme,&$media))) {
|
if(Event::handle('StartCssLinkElement', array($this,&$src,&$theme,&$media))) {
|
||||||
$url = parse_url($src);
|
$url = parse_url($src);
|
||||||
if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
|
if( empty($url['scheme']) && empty($url['host']) && empty($url['query']) && empty($url['fragment']))
|
||||||
{
|
{
|
||||||
if(file_exists(Theme::file($src,$theme))){
|
if(file_exists(Theme::file($src,$theme))){
|
||||||
$src = Theme::path($src, $theme);
|
$src = Theme::path($src, $theme);
|
||||||
|
@ -96,7 +96,7 @@ class MinifyPlugin extends Plugin
|
|||||||
&& is_null(common_config('theme', 'path'))
|
&& is_null(common_config('theme', 'path'))
|
||||||
&& is_null(common_config('theme', 'server'));
|
&& is_null(common_config('theme', 'server'));
|
||||||
$url = parse_url($src);
|
$url = parse_url($src);
|
||||||
if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
|
if( empty($url['scheme']) && empty($url['host']) && empty($url['query']) && empty($url['fragment']))
|
||||||
{
|
{
|
||||||
if(!isset($theme)) {
|
if(!isset($theme)) {
|
||||||
$theme = common_config('site', 'theme');
|
$theme = common_config('site', 'theme');
|
||||||
|
Loading…
Reference in New Issue
Block a user