No system news in the course tab see BT#2798

skala
Julio Montoya 13 years ago
parent a72bf6cbda
commit b4490f1ee6
  1. 6
      news_list.php
  2. 4
      user_portal.php

@ -12,9 +12,9 @@ $tool_name = get_lang('SystemAnnouncements');
Display::display_header($tool_name);
if (api_is_platform_admin()) {
echo '<div class="action">';
echo '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.Display::return_icon('edit.gif', get_lang('EditSystemAnnouncement')).get_lang('EditSystemAnnouncement').'</a>';
echo '</div><br />';
echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).'</a>';
echo '</div>';
}
$start = isset($_GET['start']) ? (int)$_GET['start'] : $start = 0;

@ -267,10 +267,10 @@ api_plugin('mycourses_main');
echo '</div>';
/* System Announcements */
/*
$announcement = isset($_GET['announcement']) ? $_GET['announcement'] : -1;
$visibility = api_is_allowed_to_create_course() ? VISIBLE_TEACHER : VISIBLE_STUDENT;
SystemAnnouncementManager :: display_announcements($visibility, $announcement);
SystemAnnouncementManager :: display_announcements($visibility, $announcement);*/
if (!empty ($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/',$_GET['include'])) {
include './home/'.$_GET['include'];

Loading…
Cancel
Save