Changeset 15 for trunk/inc/communities/view.inc.php
- Timestamp:
- 08/09/05 22:30:14 (7 years ago)
- Files:
-
- 1 modified
-
trunk/inc/communities/view.inc.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/communities/view.inc.php
r14 r15 25 25 if(is_numeric($token[2]) ) 26 26 { 27 $ smarty->assign('Title', 'Community');27 $_SMARTY['Title'] = 'Community'; 28 28 29 29 $community['info'] = $db->getRow('SELECT id_comm, id, community_cat.id_cat as id_cat, 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])); … … 109 109 if($_SESSION['my_communities_id'] && in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 110 110 { 111 $ smarty->assign('is_member', 1);111 $_SMARTY['is_member'] = 1; 112 112 $leftmenu['/communities/unjoin/'.$token[2]] = 'Unjoin'; 113 113 } 114 114 else 115 115 { 116 $ smarty->assign('is_member', 0);116 $_SMARTY['is_member'] = 0; 117 117 if($community['info']['moderated'] == 'yes') 118 118 $leftmenu['/communities/join/'.$token[2].'/moderated'] = 'Join'; … … 122 122 else 123 123 { 124 $ smarty->assign('is_member', 1);124 $_SMARTY['is_member'] = 1; 125 125 $leftmenu["/communities/edit/".$token[2]] = 'Edit'; 126 126 } … … 131 131 $leftmenu['/communities/invite/'.$token[2]] = 'Invite friends'; 132 132 133 $ smarty->assign('leftmenu',$leftmenu);133 $_SMARTY['leftmenu'] = $leftmenu; 134 134 135 135 136 136 /************************************/ 137 137 138 $ smarty->assign('related_communities', $related_comm);139 $ smarty->assign('community', $community);138 $_SMARTY['related_communities'] = $related_comm; 139 $_SMARTY['community'] = $community; 140 140 } 141 141 else
