Ignore:
Timestamp:
Aug 3, 2012, 5:48:51 PM (12 years ago)
Author:
mistic100
Message:

improving slider display when mixing landscape and portrait photos (must use elastic=true if mixing panoramas)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/main.inc.php

    r17181 r17349  
    616616 
    617617  // sort pictures
    618   function rank_sort($a, $b)
    619   {
    620     global $ids;
    621     return array_search($a, $ids) > array_search($b, $ids);
    622   }
    623   uksort($pictures, 'rank_sort');
     618  if (!function_exists('ed_rank_sort'))
     619  {
     620    function ed_rank_sort($a, $b)
     621    {
     622      global $ids;
     623      return array_search($a, $ids) > array_search($b, $ids);
     624    }
     625  }
     626  uksort($pictures, 'ed_rank_sort');
    624627 
    625628  foreach ($pictures as $row)
Note: See TracChangeset for help on using the changeset viewer.