Ignore:
Timestamp:
Apr 21, 2011, 11:09:53 PM (13 years ago)
Author:
LucMorizur
Message:

Code cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/include/admin_search.inc.php

    r10116 r10549  
    11<?php
    2 // Keeps file coded in UTF-8 without BOM: é
     2// Keep file coded in UTF-8 without BOM: é
    33
    44if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    3737  $filter = array();
    3838
    39     // Build a PHP regex both complying to user's request, and to LCAS current
    40     // rule
     39    // Build a PHP regex both complying to user's request,
     40    // and to LCAS current rule
    4141    $username=  preg_replace(array('/^\*/', '/\*$/'), '%', $_GET['username']);
    4242    if (preg_match('/%$/', $username))
     
    233233// allow plugins to fill template var plugin_user_list_column_titles and
    234234// plugin_columns/plugin_actions for each user in the list
    235 $visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list);
     235$visible_user_list =
     236 trigger_event('loc_visible_user_list', $visible_user_list);
    236237
    237238foreach ($visible_user_list as $local_user)
     
    262263    $properties[] = l10n( sprintf('Level %d', $local_user['level']) );
    263264  }
    264   $properties[] =
    265     (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true'))
    266         ? l10n('High definition') : l10n('');
     265  $properties[] = (
     266    isset($local_user['enabled_high']) and
     267    ($local_user['enabled_high'] == 'true')
     268  ) ? l10n('High definition') : l10n('');
    267269
    268270  $template->append(
     
    282284      'GROUPS' => $groups_string,
    283285      'PROPERTIES' => implode( ', ', $properties),
    284       'plugin_columns' => isset($local_user['plugin_columns']) ? $local_user['plugin_columns'] : array(),
    285       'plugin_actions' => isset($local_user['plugin_actions']) ? $local_user['plugin_actions'] : array(),
     286      'plugin_columns' => isset($local_user['plugin_columns']) ?
     287       $local_user['plugin_columns'] : array(),
     288      'plugin_actions' => isset($local_user['plugin_actions']) ?
     289       $local_user['plugin_actions'] : array(),
    286290      )
    287291    );
Note: See TracChangeset for help on using the changeset viewer.