Changeset 12550


Ignore:
Timestamp:
11/05/11 15:47:14 (8 years ago)
Author:
Eric
Message:

New version 2.3.1 hard coded for publication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/main.inc.php

    r12314 r12550  
    22/* 
    33Plugin Name: UserAdvManager 
    4 Version: 2.30.0 
     4Version: 2.30.1 
    55Description: Renforcer la gestion des utilisateurs - Enforce users management 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 
     
    8686  /** 
    8787   * UAM_PwdReset_Action - Triggered on UAM_PwdReset_Action 
    88    * Handle passord reset action in user_list.php 
     88   * Handle password reset action in user_list.php 
    8989   */ 
    9090  function UAM_PwdReset_Action() 
     
    131131      { 
    132132        array_push($page['errors'], l10n('UAM_Guest cannot be pwdreset')); 
    133         $errors = l10n('UAM_Guest cannot be pwdreset'); 
     133        $template->append('errors', l10n('UAM_Guest cannot be pwdreset')); 
    134134      } 
    135135      if (($conf['guest_id'] != $conf['default_user_id']) and 
     
    137137      { 
    138138        array_push($page['errors'], l10n('UAM_Default user cannot be pwgreset')); 
    139         $errors = l10n('UAM_Default user cannot be pwgreset'); 
     139        $template->append('errors', l10n('UAM_Default user cannot be pwgreset')); 
    140140      } 
    141141      if (in_array($conf['webmaster_id'], $collection)) 
    142142      { 
    143143        array_push($page['errors'], l10n('UAM_Webmaster cannot be pwdreset')); 
    144         $errors = l10n('UAM_Webmaster cannot be pwdreset'); 
     144        $template->append('errors', l10n('UAM_Webmaster cannot be pwdreset')); 
    145145      } 
    146146      if (in_array($user['id'], $collection)) 
    147147      { 
    148148        array_push($page['errors'], l10n('UAM_You cannot pwdreset your account')); 
    149         $errors = l10n('UAM_You cannot pwdreset your account'); 
     149        $template->append('errors', l10n('UAM_You cannot pwdreset your account')); 
    150150      } 
    151151 
     
    227227      } 
    228228    } 
    229  
    230 $page['order_by_items'] = array( 
    231   'id' => l10n('registration date'), 
    232   'username' => l10n('Username'), 
    233   'level' => l10n('Privacy level'), 
    234   'Language' => l10n('Language'), 
    235   'UAM_pwdreset' => l10n('UAM_PwdReset'), 
    236   ); 
    237  
    238 // Filter order options 
    239 $template->assign('order_options', $page['order_by_items']); 
    240 $template->assign('order_selected', 
    241     isset($_GET['order_by']) ? $_GET['order_by'] : ''); 
    242  
    243229    $template->set_prefilter('user_list', 'UAM_PwdReset_Prefilter'); 
    244230  } 
Note: See TracChangeset for help on using the changeset viewer.