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

    r1 r15  
    4343        $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 
    4444 
    45         $smarty->assign('leftmenu',$leftmenu); 
     45        $_SMARTY['leftmenu'] = $leftmenu; 
    4646        /************************************/ 
    4747 
     
    5151                { 
    5252                        $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 
    53                         $smarty->assign('member', true); 
     53                        $_SMARTY['is_member'] =  true; 
    5454                } 
    5555        } 
    5656 
    57         $smarty->assign('community',$community); 
    58         $smarty->assign('topic', $topic); 
     57        $_SMARTY['community'] = $community; 
     58        $_SMARTY['topic'] =  $topic; 
    5959} 
    6060?>