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/communities/category.inc.php

    r1 r15  
    3232if(is_numeric($token[2])) 
    3333{ 
    34         $smarty->assign('Title', 'By category'); 
     34        $_SMARTY['Title'] =  'By category'; 
    3535 
    3636        if($token[3] == 'newer') 
     
    4242 
    4343        $nb_page = ceil($category['nb_communities']/20); 
    44         $pages = array_fill(1,$nb_page, NULL); 
     44        $pages = @array_fill(1,$nb_page, NULL); 
    4545 
    4646        if($category['nb_communities']>20 && is_numeric($token[4]) && $token[4]<= $nb_page ) 
     
    5656        } 
    5757 
    58         $smarty->assign('cat', $category); 
    59         $smarty->assign('pages', $pages); 
    60         $smarty->assign('communities', $communities); 
     58        $_SMARTY['cat'] =  $category; 
     59        $_SMARTY['pages'] =  $pages; 
     60        $_SMARTY['communities'] =  $communities; 
    6161} 
    6262else 
     
    7777} 
    7878 
    79 $smarty->assign('categories', $categories); 
     79$_SMARTY['categories'] =  $categories; 
    8080 
    8181array_unshift($categories_list, _('Everywhere')); 
    82 $smarty->assign('categories_list', $categories_list); 
     82$_SMARTY['categories_list'] =  $categories_list; 
    8383 
    8484}