Changeset 2089 for trunk


Ignore:
Timestamp:
Sep 12, 2007, 6:01:54 AM (17 years ago)
Author:
rvelices
Message:

merge -r2088 from branch-1_7 to trunk

  • urls used in http redirections must not be html escaped (eg. should use & instead of &)
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r2059 r2089  
    8585      $must_repost = true;
    8686      array_push($page['errors'],
    87         l10n_dec('nbm_background_treatment_redirect_second', 
     87        l10n_dec('nbm_background_treatment_redirect_second',
    8888                 'nbm_background_treatment_redirect_seconds',
    8989                  $time_refresh));
     
    165165      array_push
    166166      (
    167         $inserts, 
     167        $inserts,
    168168        array
    169169        (
     
    176176      array_push
    177177      (
    178         $page['infos'], 
     178        $page['infos'],
    179179        sprintf(
    180           l10n('nbm_user_x_added'), 
    181           $nbm_user['username'], 
     180          l10n('nbm_user_x_added'),
     181          $nbm_user['username'],
    182182          get_email_address_as_display_text($nbm_user['mail_address'])
    183183        )
     
    204204        $result = pwg_query($query);
    205205
    206         redirect($base_url.get_query_string_diff(array()), l10n('nbm_redirect_msg'));
     206        redirect($base_url.get_query_string_diff(array(), false), l10n('nbm_redirect_msg'));
    207207      }
    208208    }
     
    219219  global $conf, $page, $user, $lang_info, $lang, $env_nbm;
    220220  $return_list = array();
    221  
     221
    222222  if (in_array($action, array('list_to_send', 'send')))
    223223  {
     
    314314                  array
    315315                  (
    316                     'DATE_BETWEEN_1' => $nbm_user['last_send'], 
     316                    'DATE_BETWEEN_1' => $nbm_user['last_send'],
    317317                    'DATE_BETWEEN_2' => $dbnow,
    318318                    'END_PUNCT' => $end_punct
     
    422422            }
    423423          }
    424          
     424
    425425          // unset env nbm user
    426426          unset_user_on_env_nbm();
     
    520520        }
    521521      }
    522    
     522
    523523      array_push($page['infos'],
    524524        l10n_dec('nbm_updated_param_count', 'nbm_updated_params_count',
     
    587587     (
    588588      'caption' => l10n('nbm_param_mode'),
    589       'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), 
     589      'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
    590590        array('mode' => 'param'))
    591591     ),
     
    627627  $template->assign_block_vars
    628628  (
    629     'repost', 
     629    'repost',
    630630      array
    631631      (
  • trunk/admin/user_list.php

    r2084 r2089  
    441441    PHPWG_ROOT_PATH.
    442442    'admin.php'.
    443     get_query_string_diff(
    444       array(
    445         'start'
    446         )
    447       )
     443    get_query_string_diff(array(), false)
    448444    );
    449445}
     
    835831
    836832  $properties = array();
     833  $properties[] = l10n( sprintf('Level %d', $local_user['level']) );
    837834  $properties[] =
    838835    (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true'))
    839836        ? $lang['is_high_enabled'] : $lang['is_high_disabled'];
    840 
    841   $properties[] = l10n( sprintf('Level %d', $local_user['level']) );
    842837
    843838  $template->assign_block_vars(
     
    860855      'GROUPS' => $groups_string,
    861856      'PROPERTIES' => implode( ',', $properties),
    862 
    863857      )
    864858    );
  • trunk/include/functions.inc.php

    r2086 r2089  
    430430
    431431  $do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type);
    432  
     432
    433433  if (!$do_log)
    434434  {
     
    460460  list($curyear, $curmonth, $curday) = explode('-', $curdate);
    461461  list($curhour) = explode(':', $curtime);
    462  
     462
    463463  $query = '
    464464INSERT INTO '.HISTORY_TABLE.'
     
    713713 *
    714714 * @param array $rejects
     715 * @param boolean $escape - if true escape & to & (for html)
    715716 * @returns string
    716717 */
    717 function get_query_string_diff($rejects = array())
     718function get_query_string_diff($rejects=array(), $escape=true)
    718719{
    719720  $query_string = '';
     
    727728    if (!in_array($key, $rejects))
    728729    {
    729       $query_string.= $is_first ? '?' : '&';
     730      $query_string.= $is_first ? '?' : ($escape ? '&' : '&' );
    730731      $is_first = false;
    731732      $query_string.= $key.'='.$value;
     
    840841    $thumbnail_title = '';
    841842  }
    842  
     843
    843844  if (!empty($element_info['filesize']))
    844845  {
     
    10761077 *
    10771078 * @param element/array $key_args: element or array of l10n_args elements
    1078  * @param $sep: if $key_args is array, 
     1079 * @param $sep: if $key_args is array,
    10791080 *   separator is used when translated l10n_args elements are concated
    10801081 * @return string
  • trunk/template/yoga/admin/user_list.tpl

    r2084 r2089  
    5959  </label>
    6060
    61   <input class="submit" type="submit" name="submit_filter" value="{lang:submit}" />
     61  <input class="submit" type="submit" value="{lang:submit}" />
    6262
    6363</fieldset>
Note: See TracChangeset for help on using the changeset viewer.