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:
parent
d78f83211e
commit
afd653884a
2 changed files with 3 additions and 1 deletions
|
@ -524,6 +524,8 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
|
||||||
*/
|
*/
|
||||||
function plugin_version_compare($a, $b)
|
function plugin_version_compare($a, $b)
|
||||||
{
|
{
|
||||||
|
if (strtolower($a) == 'auto') return false;
|
||||||
|
|
||||||
$pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./');
|
$pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./');
|
||||||
$replacement = array( "'.'.intval('\\1', 36).'.'", '.', '');
|
$replacement = array( "'.'.intval('\\1', 36).'.'", '.', '');
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Plugin Name: Language Switch
|
Plugin Name: Language Switch
|
||||||
Version: Auto
|
Version: 2.1.1
|
||||||
Description: Switch to another language from flags on your gallery home page.
|
Description: Switch to another language from flags on your gallery home page.
|
||||||
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
|
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
|
||||||
Author: Piwigo team
|
Author: Piwigo team
|
||||||
|
|
Loading…
Add table
Reference in a new issue