aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-08-29 07:26:53 +0000
committermistic100 <mistic@piwigo.org>2014-08-29 07:26:53 +0000
commit2b1bba7ffafdfc4447c28dc8fee77b9eca97a672 (patch)
tree2bdd8ae398c0168b8304a57552858a4102181235 /include
parent4d65035b3984e060bf0f1e0e5b646a29ee648b3e (diff)
restore PluginMaintain::autoUpdate throwing a warning instead of a fatal error
git-svn-id: http://piwigo.org/svn/trunk@29316 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_plugins.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/functions_plugins.inc.php b/include/functions_plugins.inc.php
index b980390a8..5790eccf7 100644
--- a/include/functions_plugins.inc.php
+++ b/include/functions_plugins.inc.php
@@ -70,6 +70,17 @@ class PluginMaintain
* @param array &$errors - used to return error messages
*/
function update($old_version, $new_version, &$errors=array()) {}
+
+ /**
+ * @removed 2.7
+ */
+ function autoUpdate()
+ {
+ if (is_admin() && !defined('IN_WS'))
+ {
+ trigger_error('Function PluginMaintain::autoUpdate deprecated', E_USER_WARNING);
+ }
+ }
}
/**