Changeset 2208 for trunk/plugins
- Timestamp:
- Feb 13, 2008, 9:13:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/c13y_upgrade/initialize.inc.php
r2136 r2208 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 30 30 } 31 31 32 add_event_handler(' get_check_integrity', 'c13y_upgrade');32 add_event_handler('list_check_integrity', 'c13y_upgrade'); 33 33 34 function c13y_upgrade( $c13y_array)34 function c13y_upgrade() 35 35 { 36 36 global $conf; … … 38 38 load_language('plugin.lang', dirname(__FILE__).'/'); 39 39 40 $ result = array();40 $can_be_deactivate = true; 41 41 42 42 /* Check user with same e-mail */ … … 52 52 if (mysql_fetch_array(pwg_query($query))) 53 53 { 54 $result[] = get_c13y( 54 $can_be_deactivate = false; 55 add_c13y( 55 56 l10n('c13y_exif_dbl_email_user'), 56 57 null, … … 61 62 62 63 /* Check if this plugin must deactivate */ 63 if ( count($result) === 0)64 if ($can_be_deactivate) 64 65 { 65 66 $deactivate_msg_link = … … 70 71 l10n('c13y_upgrade_deactivate').'</a>'; 71 72 72 $result[] = get_c13y(73 add_c13y( 73 74 l10n('c13y_upgrade_no_anomaly'), 74 75 'c13y_upgrade_correction', … … 77 78 ); 78 79 } 79 80 return array_merge($c13y_array, $result);81 80 } 82 81
Note: See TracChangeset
for help on using the changeset viewer.