diff options
Diffstat (limited to 'application')
-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 | /** |