X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=inc%2Ftemplates_upgrade.php;h=580868456ed45dda73ca420316b04b3402329927;hb=a1d1d319af15be975bde4695a3bfeb7d78ea0398;hp=a636145e67bec5eec6c86ac604ae8348b6153034;hpb=9d328be613bc25ef3f19f751bcf4de59343944c6;p=syp.git diff --git a/inc/templates_upgrade.php b/inc/templates_upgrade.php index a636145..5808684 100644 --- a/inc/templates_upgrade.php +++ b/inc/templates_upgrade.php @@ -1,13 +1,16 @@ - + <?php ptrans ('SYP upgrade')?> @@ -27,8 +30,8 @@ return true; } - require_once ("./inc/settings.php"); require_once ("./inc/db/mysql.php"); + require_once ("./inc/install_utils.php"); require_once ("./inc/utils.php"); $error = false; @@ -44,14 +47,14 @@ } if ($error) { die(sprintf('

%s

', trans('SYP is not correctly installed. Please follow README.txt instructions - and go to wizard.'))); + and go to wizard.'))); } safe_create_writable_dir (getthumbsdir ()); if (create_all_thumbs ($connection)) { par_success (trans('Thumbnails successfully created.')); } else { - par_error (trans('Error when creating thumbnails.')); + par_error_and_leave (trans('Error when creating thumbnails.')); } par_success (trans ('SYP upgrade went smoothly. You can now go to admin area'));