From 108937e81aa75c65d1b562260293c2e809bc1066 Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 1 Nov 2008 21:22:08 +0000 Subject: merge -c2815 from trunk to branch 2.0 - bugs correction in upgrade_1.7.0.php. - only non-standard plugins are deactivated during upgrade. git-svn-id: http://piwigo.org/svn/branches/2.0@2816 68402e56-0260-453c-a942-63ccdbb3a9ee --- upgrade.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'upgrade.php') diff --git a/upgrade.php b/upgrade.php index 2dd99747b..cb1d7337e 100644 --- a/upgrade.php +++ b/upgrade.php @@ -237,19 +237,7 @@ else // Plugins deactivation if (in_array(PREFIX_TABLE.'plugins', $tables)) { - $query = ' -UPDATE '.PREFIX_TABLE.'plugins SET state="inactive" WHERE state="active" -;'; - mysql_query($query); - - if (mysql_affected_rows() > 0) - { - array_push( - $page['infos'], - 'As a precaution, all activated plugins have been deactivated. -You must check for plugins upgrade before reactiving them.' - ); - } + deactivate_non_standard_plugins(); } // Create empty local files to avoid log errors -- cgit v1.2.3