aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/c13y_upgrade/initialize.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-03-01 13:23:51 +0000
committerrub <rub@piwigo.org>2008-03-01 13:23:51 +0000
commitf54877ca04e9e99e67b94f7c486229d4c6543a8a (patch)
treeccb84fee846e2d0809552840b867c30804ab548f /plugins/c13y_upgrade/initialize.inc.php
parent35076ee1b9e32618d3c92bdd8aee20f2c4abb694 (diff)
0000809: Use more php classes implementation
Use class for c13y git-svn-id: http://piwigo.org/svn/trunk@2232 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/c13y_upgrade/initialize.inc.php')
-rw-r--r--plugins/c13y_upgrade/initialize.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/c13y_upgrade/initialize.inc.php b/plugins/c13y_upgrade/initialize.inc.php
index 24de4d9cf..453274cf2 100644
--- a/plugins/c13y_upgrade/initialize.inc.php
+++ b/plugins/c13y_upgrade/initialize.inc.php
@@ -31,7 +31,7 @@ if (!defined('PHPWG_ROOT_PATH'))
add_event_handler('list_check_integrity', 'c13y_upgrade');
-function c13y_upgrade()
+function c13y_upgrade($c13y)
{
global $conf;
@@ -56,7 +56,7 @@ limit 0,1
if (mysql_fetch_array(pwg_query($query)))
{
$can_be_deactivate = false;
- add_c13y(
+ $c13y->add_anomaly(
l10n('c13y_dbl_email_user'),
null,
null,
@@ -94,7 +94,7 @@ where
'" onclick="window.open(this.href, \'\'); return false;">'.
sprintf(l10n('c13y_correction_obsolete_plugin'), $row['id']).'</a>';
- add_c13y(
+ $c13y->add_anomaly(
l10n('c13y_obsolete_plugin'),
null,
null,
@@ -111,7 +111,7 @@ where
'" onclick="window.open(this.href, \'\'); return false;">'.
l10n('c13y_upgrade_deactivate').'</a>';
- add_c13y(
+ $c13y->add_anomaly(
l10n('c13y_upgrade_no_anomaly'),
'c13y_upgrade_correction',
'deactivate_plugin',