Ignore:
Timestamp:
Feb 14, 2009, 3:28:21 AM (15 years ago)
Author:
rvelices
Message:

merge 3145-3146 from trunk
Last (I hope) paranoic optims ...

  • move get_uysername and get_groupname from public to admin/functions.inc.php
  • optim in index.php
  • tags.tpl does not need smarty modifier included
  • move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/index.php

    r3118 r3147  
    229229  $order_idx = pwg_get_session_var( 'image_order', 0 );
    230230
    231   $orders = get_category_preferred_image_orders();
    232   foreach ($orders as $order_id => $order)
     231  $url = add_url_params(
     232          duplicate_index_url(),
     233          array('image_order' => '')
     234        );
     235  foreach (get_category_preferred_image_orders() as $order_id => $order)
    233236  {
    234237    if ($order[2])
     
    238241        array(
    239242          'DISPLAY' => $order[0],
    240           'URL' => add_url_params(
    241             duplicate_index_url(),
    242             array('image_order' => $order_id)
    243             ),
     243          'URL' => $url.$order_id,
    244244          'SELECTED' => ($order_idx == $order_id ? true:false),
    245245          )
Note: See TracChangeset for help on using the changeset viewer.