Dotclear

Changeset 1099:b46e6cc8ffff for admin


Ignore:
Timestamp:
02/13/13 16:05:08 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
twig
Message:

Removed escaping in template engine (escaping will need to be explicitely set in templates)
Fixed categories combo field on homepage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1090 r1099  
    145145          $categories = $core->blog->getCategories(array('post_type'=>'post')); 
    146146          while ($categories->fetch()) { 
    147                $categories_combo[] = new formSelectOption( 
     147               $categories_combo[$categories->cat_id] =  
    148148                    str_repeat('&nbsp;&nbsp;',$categories->level-1). 
    149                     ($categories->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($categories->cat_title), 
    150                     $categories->cat_id 
    151                ); 
    152           } 
    153      } 
    154      catch (Exception $e) { } 
     149                    ($categories->level-1 == 0 ? '' : '&bull; '). 
     150                    html::escapeHTML($categories->cat_title); 
     151          } 
     152     } catch (Exception $e) { } 
    155153      
    156154     $form = new dcForm($core,array('quickentry','quick-entry'),'post.php'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map