diff --git a/main/wiki/index.php b/main/wiki/index.php index 84a3901594..c0bf3ac4bc 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -33,7 +33,8 @@ require_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); require_once (api_get_path(LIBRARY_PATH).'text.lib.php'); require_once (api_get_path(LIBRARY_PATH).'events.lib.inc.php'); require_once (api_get_path(LIBRARY_PATH).'security.lib.php'); - +require_once(api_get_path(INCLUDE_PATH).'lib/mail.lib.inc.php'); +require_once(api_get_path(INCLUDE_PATH).'conf/mail.conf.php'); /* @@ -51,6 +52,8 @@ $htmlHeadXtra[] =''; - echo ' ('.get_lang('Version').' '.$row['version'].')'; //juan carlos crudo + echo ' ('.get_lang('Version').' '.$row['version'].')'; echo ' ... '; if ($row['user_id']<>0) { @@ -976,9 +968,18 @@ if ($_GET['action']=='recentchanges') $sql='SELECT * FROM '.$tbl_wiki.' WHERE '.$groupfilter.' ORDER BY timestamp DESC LIMIT 0,10'; // last 10 $result=api_sql_query($sql,__LINE__,__FILE__); - + + if (check_notify_all()) + { + $notify_all= ''.get_lang('FullNotifyByEmail').''.get_lang('NotNotifyChanges').''; + } + else + { + $notify_all= ''.get_lang('FullCancelNotifyByEmail').''.get_lang('NotifyChanges').''; + } + echo '
'; - echo ''.get_lang('RecentChanges').'
'; + echo ''.get_lang('RecentChanges').' '.$notify_all.'
'; echo '
'; echo '