diff --git a/main/calendar/agenda.lib.php b/main/calendar/agenda.lib.php index 4620d6417d..769fd49745 100644 --- a/main/calendar/agenda.lib.php +++ b/main/calendar/agenda.lib.php @@ -8,7 +8,7 @@ class Agenda { $this->events = array(); $this->event_platform_color = 'red';//red - $this->event_course_color = '#6B8E23'; //green + $this->event_course_color = '#458B00'; //green $this->event_group_color = '#A0522D'; //siena $this->event_session_color = '#000080'; // blue $this->event_personal_color = 'steel blue'; //steel blue @@ -33,8 +33,7 @@ class Agenda { $my_course_list = CourseManager::get_courses_list_by_user_id(api_get_user_id(), true); foreach($my_course_list as $course_item) { $this->get_course_events($start, $end, $course_item); - } - + } if (!empty($this->events)) { return json_encode($this->events); @@ -50,8 +49,7 @@ class Agenda { //$table_agenda = Database::get_course_table ( TABLE_AGENDA ); switch($type) { case 'personal': - $personal_event = $this->get_personal_event($id); - + $personal_event = $this->get_personal_event($id); if (!empty($personal_event)) { $sql = "UPDATE $this->tbl_personal_agenda SET date = DATE_ADD(date,INTERVAL $delta MINUTE), enddate = DATE_ADD(enddate,INTERVAL $delta MINUTE) WHERE id=".intval($id); diff --git a/main/exercice/admin.php b/main/exercice/admin.php index 75e139e070..547c632fe5 100755 --- a/main/exercice/admin.php +++ b/main/exercice/admin.php @@ -195,7 +195,6 @@ if ($editQuestion || $newQuestion || $modifyQuestion || $modifyAnswers) { if ($editQuestion) { // question not found if (!$objQuestion = Question::read($editQuestion)) { - //die(get_lang('QuestionNotFound')); api_not_allowed(); } // saves the object into the session diff --git a/main/exercice/exercise_submit.php b/main/exercice/exercise_submit.php index a451b1b40d..cd4bb4b7ec 100644 --- a/main/exercice/exercise_submit.php +++ b/main/exercice/exercise_submit.php @@ -521,7 +521,7 @@ if ($question_count != 0) { } } } else { - $error = get_lang('QuestionNotFound'); + $error = get_lang('ThereAreNoQuestionsForThisExercise'); } if (!empty ($_GET['gradebook']) && $_GET['gradebook'] == 'view') { diff --git a/main/inc/lib/group_portal_manager.lib.php b/main/inc/lib/group_portal_manager.lib.php index 15692c2ded..84e59c372b 100755 --- a/main/inc/lib/group_portal_manager.lib.php +++ b/main/inc/lib/group_portal_manager.lib.php @@ -957,40 +957,11 @@ class GroupPortalManager { } if (!empty($links)) { - echo '
'.cut($group_info['name'], GROUP_TITLE_LENGTH, true).'
'; + //echo '
'.cut($group_info['name'], GROUP_TITLE_LENGTH, true).'
'; + //echo Display::div(get_lang('Actions') ,array('class' => 'social_menu_option')); echo ''; } - - - /* - // my other groups - if (count($groups_by_user) > 1) { - echo '
'.get_lang('MyOtherGroups').'
'; - echo '
'; - $min_count_groups = 4; - $i = 1; - $more_link = false; - foreach($groups_by_user as $group) { - if ($group['id'] == $group_id) continue; - if ($i > $min_count_groups) { - $more_link = true; - break; - } - $picture = GroupPortalManager::get_picture_group($group['id'], $group['picture_uri'],80); - echo ''; - echo ''; - echo '
'.cut($group['name'],50,true).'
'; - $i++; - } - if ($more_link) { - //More link - echo '
'.get_lang('SeeMore').'
'; - } - echo '
'; - } - */ } -} -?> +} \ No newline at end of file diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index f4fab6b844..53a43ad208 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -628,11 +628,12 @@ class SocialManager extends UserManager { } if (!in_array($show, array('shared_profile', 'groups', 'group_edit', 'member_list','waiting_list','invite_friends'))) { - echo '
'; - echo ''.get_lang('Menu').''; - echo '
'; + //echo Display::div(get_lang('Actions') ,array('class' => 'social_menu_option')); + /*echo '
'; + echo ''.get_lang('Optoi').''; + echo '
';*/ - echo '