diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-14 16:43:32 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-01-14 16:43:32 +0100 |
commit | 7282418baa20861dd8132524bc99be65ed9c1c24 (patch) | |
tree | 15886b23a1223128ee9a416f4123e456bb49d531 /application/Updater.php | |
parent | 3ee5c69777af4d5b20cfd8e89e1cc3cf13f640eb (diff) | |
download | Shaarli-7282418baa20861dd8132524bc99be65ed9c1c24.tar.gz Shaarli-7282418baa20861dd8132524bc99be65ed9c1c24.tar.zst Shaarli-7282418baa20861dd8132524bc99be65ed9c1c24.zip |
Move user.css to data folder
Diffstat (limited to 'application/Updater.php')
-rw-r--r-- | application/Updater.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/Updater.php b/application/Updater.php index 704ce7ab..eb03c6d3 100644 --- a/application/Updater.php +++ b/application/Updater.php | |||
@@ -308,6 +308,22 @@ class Updater | |||
308 | 308 | ||
309 | return true; | 309 | return true; |
310 | } | 310 | } |
311 | |||
312 | /** | ||
313 | * Move the file to inc/user.css to data/user.css. | ||
314 | * | ||
315 | * Note: Due to hardcoded paths, it's not unit testable. But one line of code should be fine. | ||
316 | * | ||
317 | * @return bool true if the update is successful, false otherwise. | ||
318 | */ | ||
319 | public function updateMethodMoveUserCss() | ||
320 | { | ||
321 | if (! is_file('inc/user.css')) { | ||
322 | return true; | ||
323 | } | ||
324 | |||
325 | return rename('inc/user.css', 'data/user.css'); | ||
326 | } | ||
311 | } | 327 | } |
312 | 328 | ||
313 | /** | 329 | /** |