0000809: Use more php classes implementation

Use class for c13y


git-svn-id: http://piwigo.org/svn/trunk@2232 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2008-03-01 13:23:51 +00:00
commit f54877ca04
7 changed files with 598 additions and 549 deletions

View file

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