Dotclear

Changeset 1954:107cf75bb37b


Ignore:
Timestamp:
09/18/13 23:15:23 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Remove closure and use create_function instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r1953 r1954  
    166166          if ($rs->nb_total>0) { 
    167167               // remove current category 
    168                echo  
    169                form::combo('mov_cat['.$rs->cat_id.']',array_filter($categories_combo, function($cat) use ($rs) {return ($cat->value!=$rs->cat_id);}),'',''). 
     168               echo               
     169               form::combo('mov_cat['.$rs->cat_id.']',array_filter($categories_combo, create_function('$cat', 'return $cat->value!=$GLOBALS[\'rs\']->cat_id;')),'',''). 
    170170               '<input type="submit" class="" name="mov['.$rs->cat_id.']" value="'.__('Ok').'"/>'; 
    171171              
Note: See TracChangeset for help on using the changeset viewer.

Sites map