From: <mar...@us...> - 2007-08-11 20:30:45
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24802 Modified Files: Tag: BRANCH-1-9 tiki-admin_chat.php Log Message: [FIX] Chat administration page disabled when feature is off. Index: tiki-admin_chat.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-admin_chat.php,v retrieving revision 1.9.2.7 retrieving revision 1.9.2.8 diff -u -d -r1.9.2.7 -r1.9.2.8 --- tiki-admin_chat.php 2 Mar 2007 12:23:12 -0000 1.9.2.7 +++ tiki-admin_chat.php 11 Aug 2007 20:30:46 -0000 1.9.2.8 @@ -11,6 +11,14 @@ include_once ('lib/chat/chatlib.php'); +if ($feature_chat != 'y') { + $smarty->assign('msg', tra("This feature is disabled").": feature_chat"); + + $smarty->display("error.tpl"); + die; +} + + if ($tiki_p_admin_chat != 'y') { $smarty->assign('msg', tra("You do not have permission to use this feature")); |