From 8df902951b4a42436a3fb09de610fd94e756f96f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 14 Feb 2015 16:15:17 +0100 Subject: update improvements --- install/index.php | 17 ++++++++++++++--- install/install_functions.php | 8 ++++++-- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 191c2574..31c15f89 100755 --- a/install/index.php +++ b/install/index.php @@ -17,8 +17,12 @@ require_once('install_functions.php'); if (isset($_GET['clean'])) { if (is_dir('install')){ - delTree('install'); - header('Location: index.php'); + delTree('install'); + header('Location: index.php'); + } + if (is_dir('cache')) { + delTree('cache', false); + header('Location: index.php'); } } @@ -402,8 +406,10 @@ border: 1px solid #000;

- wallabag seems already installed. If you want to update it, you only have to delete install folder, then reload this page. + Click here to finish update.
+ If it fails, just delete the install directory.

+

You may have to clear cache (by going into config screen) after update.

@@ -701,6 +707,7 @@ php composer.phar install $(".database_info").hide(); $(".usersettings").hide(); + /* * Database showing/hiding */ @@ -730,6 +737,10 @@ php composer.phar install endif; ?> + + $('.technical').hide(); + + $("#mysql_utf8_mb4").click(function() { $("#utf8_mb4_infos").toggle(); }); diff --git a/install/install_functions.php b/install/install_functions.php index a4830569..3cfe13fb 100644 --- a/install/install_functions.php +++ b/install/install_functions.php @@ -78,12 +78,16 @@ function pdoDrivers() { * Here in case of .gitignore files */ -function delTree($dir) { +function delTree($dir, $withdirectory="true") { $files = array_diff(scandir($dir), array('.','..')); foreach ($files as $file) { (is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file"); } - return rmdir($dir); + if ($withdirectory) { + return rmdir($dir); + } else { + return true; + } } function generate_salt() { -- cgit v1.2.3