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
This commit is contained in:
patdenice 2010-07-28 16:00:25 +00:00
parent d78f83211e
commit afd653884a
2 changed files with 3 additions and 1 deletions

View file

@ -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).'.'", '.', '');

View file

@ -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