Dotclear

Changeset 1001:a6f660d85764 for admin


Ignore:
Timestamp:
11/13/12 13:25:48 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
twig
Message:

Better that way...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r992 r1001  
    3636     $categories = $core->blog->getCategories(array('post_type'=>'post')); 
    3737     while ($categories->fetch()) { 
    38           $categories_combo[$categories->cat_id] =  
    39                str_repeat('&nbsp;&nbsp;',$categories->level-1). 
    40                ($categories->level-1 == 0 ? '' : '&bull; '). 
    41                html::escapeHTML($categories->cat_title);; 
     38          $categories_combo[] = new formSelectOption( 
     39               str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($categories->cat_title), 
     40               $categories->cat_id 
     41          ); 
    4242     } 
    4343} catch (Exception $e) { } 
     
    9393     ->addField( 
    9494          new dcFieldSubmit('save',__('Save'),array())) 
     95     ->addField( 
     96          new dcFieldSubmit('delete',__('Delete'),array())) 
    9597     ->addField( 
    9698          new dcFieldCombo('post_status',$core->auth->getInfo('user_post_status'),$status_combo,array( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map