Show
Ignore:
Timestamp:
08/09/05 22:30:14 (7 years ago)
Author:
alexx
Message:
  • fix last bug in communities (see [14])
  • execute a "conversion smarty style" script ;) : for i in find . -type f | grep "\.php$" | grep -v "\.svn"; do perl -pi -e "s/\\\$smarty->assign\((.*),(.*)\);/\\\$_SMARTY\[\$1\] = \$2;/" $i; done
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/inc/my/blog.inc.php

    r1 r15  
    2323 ******************** http://opensource.ikse.net/projects/dotnode ***/ 
    2424 
    25 $smarty->assign('Title','Blog'); 
     25$_SMARTY['Title'] = 'Blog'; 
    2626 
    2727$blogs = $db->query('SELECT id_blog, blog.id_cat,title, chapeau, ticket, date, status, blog_categorie.name as categorie, nb_comments  FROM blog LEFT JOIN blog_categorie USING (id,id_cat) WHERE blog.id=?  ORDER BY date DESC', $_SESSION['my_id'] ); 
     
    4242$my['blog_url'] = $db->getOne('SELECT rss FROM rss_blog WHERE id=?', array($_SESSION['my_id'])); 
    4343 
    44 $smarty->assign('my',$my); 
     44$_SMARTY['my'] = $my; 
    4545 
    4646