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

    r1 r15  
    2525if(is_numeric($token[2]) ) 
    2626{ 
    27         $smarty->assign('Title', 'Community members'); 
     27        $_SMARTY['Title'] =  'Community members'; 
    2828 
    2929        $community['info'] = $db->getRow('SELECT  id_comm, id, community.name as name, community.description as description, moderated, country, date, nb_members, community_cat.name as category FROM community LEFT JOIN community_cat USING(id_cat) WHERE id_comm=?', array($token[2])); 
     
    5353        $leftmenu["/communities/invite/".$token[2]] = 'Invite friends'; 
    5454 
    55         $smarty->assign('leftmenu',$leftmenu); 
     55        $_SMARTY['leftmenu'] = $leftmenu; 
    5656 
    5757 
    5858        /************************************/ 
    5959 
    60         $smarty->assign('community', $community); 
     60        $_SMARTY['community'] =  $community; 
    6161 
    6262}