Merge pull request #753 from ArthurHoaro/usercss
Move user.css to data folder
This commit is contained in:
commit
37ab940599
2 changed files with 17 additions and 1 deletions
|
@ -308,6 +308,22 @@ public function updateMethodDefaultTheme()
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move the file to inc/user.css to data/user.css.
|
||||||
|
*
|
||||||
|
* Note: Due to hardcoded paths, it's not unit testable. But one line of code should be fine.
|
||||||
|
*
|
||||||
|
* @return bool true if the update is successful, false otherwise.
|
||||||
|
*/
|
||||||
|
public function updateMethodMoveUserCss()
|
||||||
|
{
|
||||||
|
if (! is_file('inc/user.css')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return rename('inc/user.css', 'data/user.css');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
|
<link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/reset.css" />
|
<link type="text/css" rel="stylesheet" href="css/reset.css" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/shaarli.css" />
|
<link type="text/css" rel="stylesheet" href="css/shaarli.css" />
|
||||||
{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css#" />{/if}
|
{if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if}
|
||||||
{loop="$plugins_includes.css_files"}
|
{loop="$plugins_includes.css_files"}
|
||||||
<link type="text/css" rel="stylesheet" href="{$value}#"/>
|
<link type="text/css" rel="stylesheet" href="{$value}#"/>
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
Loading…
Reference in a new issue