From f7acd0f5c3bc66668a8aedecf401aefa8e4b6a53 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Apr 2012 11:07:09 +0200 Subject: [PATCH] Fix: Bad path for instal.lock --- htdocs/admin/tools/update.php | 15 +++++++-------- htdocs/langs/en_US/admin.lang | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/htdocs/admin/tools/update.php b/htdocs/admin/tools/update.php index 7e56a51f426..f041907f974 100644 --- a/htdocs/admin/tools/update.php +++ b/htdocs/admin/tools/update.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2007-2012 Laurent Destailleur * Copyright (C) 2009 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -39,7 +39,7 @@ $urldolibarrmodules='http://www.dolistore.com/'; $urldolibarrthemes='http://www.dolistore.com/'; $dolibarrroot=preg_replace('/([\\/]+)$/i','',DOL_DOCUMENT_ROOT); $dolibarrroot=preg_replace('/([^\\/]+)$/i','',$dolibarrroot); - +$dolibarrdataroot=preg_replace('/([\\/]+)$/i','',DOL_DATA_ROOT); /* * Actions @@ -93,10 +93,7 @@ print $langs->trans("CurrentVersion").' : '.DOL_VERSION.'
'; print $langs->trans("LastStableVersion").' : '.$langs->trans("FeatureNotYetAvailable").'
'; print '
'; -if ($mesg) -{ - print '
'.$mesg.'

'; -} +dol_htmloutput_errors($mesg); print $langs->trans("Upgrade").'
'; print '
'; @@ -107,12 +104,12 @@ print $langs->trans("DownloadPackageFromWebSite",$fullurl).'
'; print ''.$langs->trans("StepNb",2).': '; print $langs->trans("UnpackPackageInDolibarrRoot",$dolibarrroot).'
'; print ''.$langs->trans("StepNb",3).': '; -print $langs->trans("RemoveLock",$dolibarrroot.'install.lock').'
'; +print $langs->trans("RemoveLock",$dolibarrdataroot.'/install.lock').'
'; print ''.$langs->trans("StepNb",4).': '; $fullurl=''.DOL_URL_ROOT.'/install/'; print $langs->trans("CallUpdatePage",$fullurl).'
'; print ''.$langs->trans("StepNb",5).': '; -print $langs->trans("RestoreLock",$dolibarrroot.'install.lock').'
'; +print $langs->trans("RestoreLock",$dolibarrdataroot.'/install.lock').'
'; print '
'; print '
'; @@ -141,4 +138,6 @@ print $langs->trans("SetupIsReadyForUse").'
'; print ''; llxFooter(); + +$db->close(); ?> \ No newline at end of file diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 38b3fe7728e..03f3d7c4483 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -38,7 +38,7 @@ SetupArea=Setup area FormToTestFileUploadForm=Form to test file upload (according to setup) IfModuleEnabled=Note: yes is effective only if module %s is enabled RemoveLock=Remove file %s if it exists to allow usage of the update tool. -RestoreLock=Replace file %s, with read permission only, to disable any usage of update tool. +RestoreLock=Restore file %s, with read permission only, to disable any usage of update tool. SecuritySetup=Security setup ErrorModuleRequirePHPVersion=Error, this module requires PHP version %s or higher ErrorModuleRequireDolibarrVersion=Error, this module requires Dolibarr version %s or higher