aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-07-28 16:00:25 +0000
committerpatdenice <patdenice@piwigo.org>2010-07-28 16:00:25 +0000
commitafd653884af95cd0e7098484b7bfffb1a85632c3 (patch)
treee9f365540e31b1509aca97ddf1c64be7c79ed0d7
parentd78f83211ea6927cd612fa95f9e7b6efdefa54ec (diff)
Plugin version compare must return false if plugin version is "auto" (developpement version).
Change language switch version number. git-svn-id: http://piwigo.org/svn/branches/2.1@6724 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/plugins.class.php2
-rw-r--r--plugins/language_switch/main.inc.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php
index b099fc4e9..2de666c04 100644
--- a/admin/include/plugins.class.php
+++ b/admin/include/plugins.class.php
@@ -524,6 +524,8 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
*/
function plugin_version_compare($a, $b)
{
+ if (strtolower($a) == 'auto') return false;
+
$pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./');
$replacement = array( "'.'.intval('\\1', 36).'.'", '.', '');
diff --git a/plugins/language_switch/main.inc.php b/plugins/language_switch/main.inc.php
index fc430cd2f..9263e90e1 100644
--- a/plugins/language_switch/main.inc.php
+++ b/plugins/language_switch/main.inc.php
@@ -23,7 +23,7 @@
/*
Plugin Name: Language Switch
-Version: Auto
+Version: 2.1.1
Description: Switch to another language from flags on your gallery home page.
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
Author: Piwigo team