Dotclear


Ignore:
Timestamp:
09/29/15 17:22:58 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Users (lists) are now sorted in lexical order as far as possible, addresses #1850

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/actions/class.dcactionposts.php

    r2627 r3105  
    345345                         ); 
    346346                    $rs = $core->getUsers($params); 
    347                     while ($rs->fetch()) 
     347                    $rsStatic = $rs->toStatic(); 
     348                    $rsStatic->extend('rsExtUser'); 
     349                    $rsStatic = $rsStatic->toExtStatic(); 
     350                    $rsStatic->lexicalSort('user_id'); 
     351                    while ($rsStatic->fetch()) 
    348352                    { 
    349                          $usersList .= ($usersList != '' ? ',' : '').'"'.$rs->user_id.'"'; 
     353                         $usersList .= ($usersList != '' ? ',' : '').'"'.$rsStatic->user_id.'"'; 
    350354                    } 
    351355               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map