]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail...
authorPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 12:00:47 +0000 (12:00 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 12:00:47 +0000 (12:00 +0000)
90 files changed:
blocks/activity_modules/block_activity_modules.php
blocks/activity_modules/db/upgrade.php
blocks/admin/block_admin.php
blocks/admin/db/upgrade.php
blocks/admin_bookmarks/block_admin_bookmarks.php
blocks/admin_bookmarks/create.php
blocks/admin_bookmarks/delete.php
blocks/admin_tree/admintree.js
blocks/admin_tree/block_admin_tree.php
blocks/blog_tags/block_blog_tags.php
blocks/blog_tags/edit_form.php
blocks/calendar_month/block_calendar_month.php
blocks/calendar_month/db/upgrade.php
blocks/calendar_upcoming/block_calendar_upcoming.php
blocks/calendar_upcoming/db/upgrade.php
blocks/course_list/block_course_list.php
blocks/course_list/db/upgrade.php
blocks/course_list/settings.php
blocks/course_summary/block_course_summary.php
blocks/course_summary/db/upgrade.php
blocks/edit_form.php
blocks/global_navigation_tree/block_global_navigation_tree.php
blocks/glossary_random/block_glossary_random.php
blocks/glossary_random/edit_form.php
blocks/html/block_html.php
blocks/html/edit_form.php
blocks/index.html
blocks/loancalc/block_loancalc.php
blocks/login/block_login.php
blocks/mentees/block_mentees.php
blocks/mentees/edit_form.php
blocks/messages/block_messages.php
blocks/mnet_hosts/block_mnet_hosts.php
blocks/moodleblock.class.php
blocks/news_items/block_news_items.php
blocks/news_items/db/upgrade.php
blocks/online_users/block_online_users.php
blocks/online_users/db/access.php
blocks/online_users/db/upgrade.php
blocks/online_users/settings.php
blocks/participants/block_participants.php
blocks/participants/db/upgrade.php
blocks/quiz_results/block_quiz_results.php
blocks/quiz_results/edit_form.php
blocks/quiz_results/styles.php
blocks/recent_activity/block_recent_activity.php
blocks/recent_activity/db/upgrade.php
blocks/rss_client/block_rss_client.php
blocks/rss_client/db/access.php
blocks/rss_client/db/upgrade.php
blocks/rss_client/edit_form.php
blocks/rss_client/editfeed.php
blocks/rss_client/settings.php
blocks/rss_client/viewfeed.php
blocks/search/config_global.html
blocks/search/db/upgrade.php
blocks/search_forums/block_search_forums.php
blocks/search_forums/db/upgrade.php
blocks/section_links/block_section_links.php
blocks/section_links/db/upgrade.php
blocks/settings_navigation_tree/block_settings_navigation_tree.php
blocks/site_main_menu/block_site_main_menu.php
blocks/social_activities/block_social_activities.php
blocks/social_activities/db/upgrade.php
blocks/tag_flickr/block_tag_flickr.php
blocks/tag_flickr/edit_form.php
blocks/tag_youtube/block_tag_youtube.php
blocks/tag_youtube/edit_form.php
blocks/tags/block_tags.php
blocks/tags/edit_form.php
blocks/tags/settings.php
blocks/upgrade.txt
blog/rsslib.php
blog/version.php
group/assign.php
group/autogroup.php
group/autogroup_form.php
group/delete.php
group/externallib.php
group/group.php
group/group_form.php
group/grouping.php
group/grouping_form.php
group/groupings.php
group/index.php
group/lib.php
group/members.php
group/overview.php
group/simpletest/ broken_testexternal.php
group/tabs.php

index 3126ea28558aad60e39758d606cc3d5d4adeca42..b3010cbdaae348a1c35da3931b7613a42cb74719 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class block_activity_modules extends block_list {
     function init() {
@@ -67,4 +67,4 @@ class block_activity_modules extends block_list {
     }
 }
 
-?>
+
index 502e7a0c1ba090378806eace61f49a578223930a..adc675af42b8a73da29abbc8c0ee91414889623a 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the activity_modules block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_activity_modules_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_activity_modules_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index bfe5f8c5d6d54d05cea64e0cd6bf0e4171c340ba..ec7b4a2775727c6bedfa3da8d972251e1b3a7151 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class block_admin extends block_list {
     function init() {
@@ -217,4 +217,4 @@ class block_admin extends block_list {
     }
 }
 
-?>
+
index bb2282e65e73a2dd18105f6f92112040f4cec12d..fe6782ca3bafde62f21e07a92a2ef01486436e97 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the admin block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_admin_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_admin_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 5ccb057ae25b323ab5e44e2b9f087e6a2fc18c7c..cdeacb5feeeafebf0bf71ba537845663cbfe4fd6 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 // seems to work...
 // maybe I should add some pretty icons?
@@ -77,4 +77,4 @@ class block_admin_bookmarks extends block_base {
     }
 }
 
-?>
+
index ef1c8286ace32084c534788e99af320b1f0dbe66..8ba99aed7735faf7a70438f34ef49238dc0da945 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require('../../config.php');
 
@@ -45,4 +45,3 @@ if ($section = optional_param('section', '', PARAM_SAFEDIR) and confirm_sesskey(
 }
 
 
-?>
\ No newline at end of file
index 835ee6c1219531d8035541c0df5400070f9e249d..bef0c4c9ed94d978f2ece108f6b28c7a526247c8 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require('../../config.php');
 
@@ -46,4 +46,4 @@ if ($section = optional_param('section', '', PARAM_SAFEDIR) and confirm_sesskey(
     die;
 }
 
-?>
+
index f2660967828eac23976326921ef2839b18e79e1f..b73304e2a46ab030376a9202b44468bebb6cf4bb 100644 (file)
@@ -7,7 +7,7 @@ admin_tree = {
     openalt: null,
 
     init: function(numdivs, expandnodes, openimg, closedimg, openalt, closedalt) {
-        // Store the information we were passed in. 
+        // Store the information we were passed in.
         admin_tree.openimg = openimg;
         admin_tree.closedimg = closedimg;
         admin_tree.openalt = openalt;
index 40bebb0f46fe103e0e52fbd921bb91fb3e6364f4..be6f3fc211ff19ac6603ade33267b02dbd42d903 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 class block_admin_tree extends block_base {
 
@@ -71,7 +71,7 @@ class block_admin_tree extends block_base {
                     if (admin_critical_warnings_present()) {
                         $class .= ' criticalnotification';
                     }
-                } 
+                }
                 if ($content->is_hidden()) {
                     $class .= ' hidden';
                 }
index 635856ba70db0dad7e34f8b8738265c4b6ac590d..e9da3a0b12a7e61574c861751fbd06abfdf042a2 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 define('BLOGDEFAULTTIMEWITHIN', 90);
 define('BLOGDEFAULTNUMBEROFTAGS', 20);
@@ -67,9 +67,9 @@ class block_blog_tags extends block_base {
         $this->content->text = '';
         $this->content->footer = '';
 
-        /// Get a list of tags 
+        /// Get a list of tags
         $timewithin = time() - $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
-        
+
         $blogheaders = blog_get_headers();
 
         // admins should be able to read all tags
@@ -149,7 +149,7 @@ class block_blog_tags extends block_base {
                         } else if (!empty($blogheaders['filters']['course'])) {
                             $blogurl->param('courseid', $blogheaders['filters']['course']);
                         }
-                        
+
                     break;
                 }
 
@@ -184,4 +184,4 @@ function blog_tags_sort($a, $b) {
     }
 }
 
-?>
+
index e996e76abc19825b0ab6cc93f28027708657e936..2ea5b22365b985a65a189bb5a6c6a7b105867966 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 11ccacf9d67ad92b97e84b533f40bb09c515c9af..01f8fed8f5293477400bdc4078dd7983f5a33b51 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_calendar_month extends block_base {
     function init() {
@@ -16,18 +16,18 @@ class block_calendar_month extends block_base {
         $cal_y = optional_param( 'cal_y', 0, PARAM_INT );
 
         require_once($CFG->dirroot.'/calendar/lib.php');
-        
+
         if ($this->content !== NULL) {
             return $this->content;
         }
         // Reset the session variables
         calendar_session_vars($this->page->course);
-        
+
         $this->content = new stdClass;
         $this->content->text = '';
         $this->content->footer = '';
 
-        // [pj] To me it looks like this if would never be needed, but Penny added it 
+        // [pj] To me it looks like this if would never be needed, but Penny added it
         // when committing the /my/ stuff. Reminder to discuss and learn what it's about.
         // It definitely needs SOME comment here!
         $courseshown = $this->page->course->id;
@@ -73,9 +73,9 @@ class block_calendar_month extends block_base {
             $this->content->text .= calendar_get_mini($courses, $group, $user, $cal_m, $cal_y);
             $this->content->text .= '<h3 class="eventskey">'.get_string('eventskey', 'calendar').'</h3>';
             $this->content->text .= '<div class="filters">'.calendar_filter_controls('course', '', $this->page->course).'</div>';
-            
+
         }
-        
+
         // MDL-9059, unset this so that it doesn't stay in session
         if (!empty($courseset)) {
             unset($SESSION->cal_courses_shown[$this->page->course->id]);
@@ -85,4 +85,4 @@ class block_calendar_month extends block_base {
     }
 }
 
-?>
+
index 88eb8c18038388504a0fa27fbfd1126975f39aa5..e727494cc8ed3a21cc6f93a2517b95a8e71959a2 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the calendar_month block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_calendar_month_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_calendar_month_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 32d748ed71db20d78f3f340074e583fea2e653d2..4cbc14400871e9f18425acc926c5990170442eaa 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_calendar_upcoming extends block_base {
     function init() {
@@ -37,7 +37,7 @@ class block_calendar_upcoming extends block_base {
                 $this->content->footer .= '<br /><a href="'.$CFG->wwwroot.
                                           '/calendar/event.php?action=new&amp;course='.$courseshown.'">'.
                                            get_string('newevent', 'calendar').'</a>...';
-            } 
+            }
             if ($courseshown == SITEID) {
                 // Being displayed at site level. This will cause the filter to fall back to auto-detecting
                 // the list of courses it will be grabbing events from.
@@ -59,12 +59,12 @@ class block_calendar_upcoming extends block_base {
         // Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions.
 
         calendar_set_filters($courses, $group, $user, $filtercourse, $groupeventsfrom, false);
-        $events = calendar_get_upcoming($courses, $group, $user, 
-                                        get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS), 
+        $events = calendar_get_upcoming($courses, $group, $user,
+                                        get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS),
                                         get_user_preferences('calendar_maxevents', CALENDAR_UPCOMING_MAXEVENTS));
 
-        if (!empty($this->instance)) { 
-            $this->content->text = calendar_get_sideblock_upcoming($events, 
+        if (!empty($this->instance)) {
+            $this->content->text = calendar_get_sideblock_upcoming($events,
                                    'view.php?view=day&amp;course='.$courseshown.'&amp;');
         }
 
@@ -77,4 +77,4 @@ class block_calendar_upcoming extends block_base {
     }
 }
 
-?>
+
index c55e79114fd75cba449326d3b2e7371cbb1060e8..604b08c8f4702610004ade69938db9d809c147cb 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the calendar_upcoming block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_calendar_upcoming_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_calendar_upcoming_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 940199dce736a35e566ad333f9464cdf0f4631b0..f2363f47dd96efe2698a11f89384dfba7a48a8c7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 include_once($CFG->dirroot . '/course/lib.php');
 
@@ -7,7 +7,7 @@ class block_course_list extends block_list {
         $this->title = get_string('courses');
         $this->version = 2007101509;
     }
-    
+
     function has_config() {
         return true;
     }
@@ -26,7 +26,7 @@ class block_course_list extends block_list {
 
         $icon  = "<img src=\"" . $OUTPUT->old_icon_url('i/course') . "\"".
                  " class=\"icon\" alt=\"".get_string("coursecategory")."\" />";
-       
+
         $adminseesall = true;
         if (isset($CFG->block_course_list_adminview)) {
            if ( $CFG->block_course_list_adminview == 'own'){
@@ -34,8 +34,8 @@ class block_course_list extends block_list {
            }
         }
 
-        if (empty($CFG->disablemycourses) and 
-            !empty($USER->id) and 
+        if (empty($CFG->disablemycourses) and
+            !empty($USER->id) and
             !(has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) and $adminseesall) and
             !isguestuser()) {    // Just print My Courses
             if ($courses = get_my_courses($USER->id, 'visible DESC, fullname ASC')) {
@@ -83,7 +83,7 @@ class block_course_list extends block_list {
 
                         $this->content->items[]="<a $linkcss title=\""
                                    . format_string($course->shortname)."\" ".
-                                   "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">" 
+                                   "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">"
                                    .  format_string($course->fullname) . "</a>";
                         $this->content->icons[]=$icon;
                     }
@@ -93,7 +93,7 @@ class block_course_list extends block_list {
                     }
                     $this->get_remote_courses();
                 } else {
-                    
+
                     $this->content->icons[] = '';
                     $this->content->items[] = get_string('nocoursesyet');
                     if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $category->id))) {
@@ -128,7 +128,7 @@ class block_course_list extends block_list {
             $this->content->icons[] = '';
             foreach ($courses as $course) {
                 $this->content->items[]="<a title=\"" . format_string($course->shortname) . "\" ".
-                    "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&amp;wantsurl=/course/view.php?id={$course->remoteid}\">" 
+                    "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&amp;wantsurl=/course/view.php?id={$course->remoteid}\">"
                     . format_string($course->fullname) . "</a>";
                 $this->content->icons[]=$icon;
             }
@@ -137,7 +137,7 @@ class block_course_list extends block_list {
         }
 
         if ($hosts = get_my_remotehosts()) {
-            $this->content->items[] = get_string('remotemoodles','mnet'); 
+            $this->content->items[] = get_string('remotemoodles','mnet');
             $this->content->icons[] = '';
             foreach($USER->mnet_foreign_host_array as $somehost) {
                 $this->content->items[] = $somehost['count'].get_string('courseson','mnet').'<a title="'.$somehost['name'].'" href="'.$somehost['url'].'">'.$somehost['name'].'</a>';
@@ -152,4 +152,4 @@ class block_course_list extends block_list {
 
 }
 
-?>
+
index b25621016e859c4fe539737775f7b6dc45297286..bc4255c06377670ee02daeae158b1b9c7b6ebe8a 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the course_list block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_course_list_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_course_list_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 899af4a80443b53f3497c63b4cd0008e7b7a912f..a76b50b67926e586f8de92e57642073bdc348179 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 
 $options = array('all'=>get_string('allcourses', 'block_course_list'), 'own'=>get_string('owncourses', 'block_course_list'));
@@ -10,4 +10,4 @@ $settings->add(new admin_setting_configcheckbox('block_course_list_hideallcourse
                    get_string('confighideallcourseslink', 'block_course_list'), 0));
 
 
-?>
+
index 18bcf6943c05d67a188a429b4d38be0c3c77207e..e99914215f57bf3d9c7e8804ffd173032a745766 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_course_summary extends block_base {
     function init() {
@@ -50,4 +50,4 @@ class block_course_summary extends block_base {
 
 }
 
-?>
+
index 674d56391cbedfb365b02d55c726ebd5e63a45e4..144d2335c197eeac1a1913dbafeea7e5849d2e14 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the course_summary block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_course_summary_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_course_summary_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 74d3d3b8820dc0492ad9be824ac211b5c1335311..7cd811da29666e4ee86e1cd6fcf16749b83838a1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 1b79ae66cae38b63fe08c79d23f4d97fe380653a..dc0d6de6c53f4b01048c939ac6b3754e5727debb 100644 (file)
@@ -152,7 +152,7 @@ class block_global_navigation_tree extends block_tree {
         $this->page->requires->js_function_call('setup_new_navtree', array($this->id))->on_dom_ready();
         // Grab the items to display
         $this->content->items = array($this->page->navigation);
-        
+
         $reloadicon = new moodle_action_icon();
         $reloadicon->link->url = $this->page->url;
         $reloadicon->link->url->param('regenerate','navigation');
@@ -161,10 +161,10 @@ class block_global_navigation_tree extends block_tree {
         $reloadicon->alt = get_string('reload');
         $reloadicon->title = get_string('reload');
         $this->content->footer .= $OUTPUT->action_icon($reloadicon);
-        
+
         if (empty($this->config->enablesidebarpopout) || $this->config->enablesidebarpopout == 'yes') {
             user_preference_allow_ajax_update('nav_in_tab_panel_globalnav'.block_global_navigation_tree::$navcount, PARAM_INT);
-            
+
             $moveicon = new moodle_action_icon();
             $moveicon->link->add_classes('moveto customcommand requiresjs');
             $moveicon->link->url = $this->page->url;
index b1f6ea68ae55952df10e0ebadeb30b47466e38cd..343aaf3fe1bd990702127eb74a3bcc50ad0294ee 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 define('BGR_RANDOMLY',     '0');
 define('BGR_LASTMODIFIED', '1');
@@ -83,7 +83,7 @@ class block_glossary_random extends block_base {
                     $text = '';
                 } else {
                     $text = "<h3>".format_string($entry->concept,true)."</h3>";
-                }  
+                }
 
                 $options = new object;
                 $options->trusted = $entry->definitiontrust;
@@ -157,8 +157,8 @@ class block_glossary_random extends block_base {
                 .'" title="'.$this->config->addentry.'">'.$this->config->addentry.'</a><br />';
             } else {
                 $this->content->footer = '';
-            }     
-            
+            }
+
             $this->content->footer .= '<a href="'.$CFG->wwwroot.'/mod/glossary/view.php?id='.$cm->id
                 .'" title="'.$this->config->viewglossary.'">'.$this->config->viewglossary.'</a>';
 
@@ -190,4 +190,4 @@ class block_glossary_random extends block_base {
     }
 
 }
-?>
+
index 974049e79ade71f882a15f3bebc0a3886e252fd7..5e2f0b45f62a140f5897b5c867b1a4f12febac8b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 16be06b64dc1f95c6cfdf57d2e4fc16a2a73ef9e..7bc83b5a0d0a6576f3f5b8eebf797f28af75e134 100755 (executable)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class block_html extends block_base {
 
@@ -62,10 +62,10 @@ class block_html extends block_base {
 
     /**
      * This function makes all the necessary calls to {@link restore_decode_content_links_worker()}
-     * function in order to decode contents of this block from the backup 
-     * format to destination site/course in order to mantain inter-activities 
-     * working in the backup/restore process. 
-     * 
+     * function in order to decode contents of this block from the backup
+     * format to destination site/course in order to mantain inter-activities
+     * working in the backup/restore process.
+     *
      * This is called from {@link restore_decode_content_links()} function in the restore process.
      *
      * NOTE: There is no block instance when this method is called.
@@ -81,7 +81,7 @@ class block_html extends block_base {
             $sql = "SELECT bi.*
                       FROM {block_instance} bi
                            JOIN {block} b ON b.id = bi.blockid
-                     WHERE b.name = 'html' AND bi.id IN ($restored_blocks)"; 
+                     WHERE b.name = 'html' AND bi.id IN ($restored_blocks)";
 
             if ($instances = $DB->get_records_sql($sql)) {
                 foreach ($instances as $instance) {
@@ -96,4 +96,4 @@ class block_html extends block_base {
         return true;
     }
 }
-?>
+
index 2b96b001432b99fc50a195b8d690716eac91b2e5..efc0af221b97f3a8fc990493d881c90a6d7bede8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 8d1c8b69c3fce7bea45c73efd06983e3c419a92f..8b137891791fe96927ad78e64b0aad7bded08bdc 100644 (file)
@@ -1 +1 @@
+
index ac745a651d4d361337c418e339d733a571941389..7ba24018407b07c4b1c3a5c82c2c3cc94c406954 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 class block_loancalc extends block_base {
 
@@ -12,7 +12,7 @@ class block_loancalc extends block_base {
         global $CFG, $OUTPUT;
 
         $calc = $OUTPUT->old_icon_url('i/calc');
-        
+
         $this->content->text = '
         <script type="text/javascript">
        // <![CDATA[
@@ -172,14 +172,14 @@ function comp(v) { // general entry point for all cases
                 <tr>
                     <td><input name="LOANTERM" id="LOANTERM" size="17" /></td>
                     <td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" /></a></td>
-                </tr>    
+                </tr>
                 <tr>
                     <td colspan="2">'.get_string('interestrate','block_loancalc').'</td>
                 </tr>
                 <tr>
                     <td><input name="LOANINTRATE" id="LOANINTRATE" size="17" /></td>
                     <td></td>
-                </tr>    
+                </tr>
                 <tr>
                     <td colspan="2">'.get_string('repaymentfreq','block_loancalc').'</td>
                 </tr>
@@ -200,4 +200,4 @@ function comp(v) { // general entry point for all cases
 
     }
 }
-?>
+
index 4befcac740efc539891de903aa1745bc76034953..0f3cf60491ac7f456b4fceb749fd5362f62cea37 100644 (file)
@@ -1,9 +1,9 @@
-<?PHP //$Id$
+<?php
 
 class block_login extends block_base {
     function init() {
         $this->title = get_string('login');
-        $this->version = 2007101509; 
+        $this->version = 2007101509;
     }
 
     function applicable_formats() {
@@ -26,7 +26,7 @@ class block_login extends block_base {
             // in unencrypted connection...
             $wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
         }
-        
+
         if (!empty($CFG->registerauth)) {
             $authplugin = get_auth_plugin($CFG->registerauth);
             if ($authplugin->can_signup()) {
@@ -67,4 +67,4 @@ class block_login extends block_base {
     }
 }
 
-?>
+
index 1c7dbc745d6f84bb8b911188dae2ac78988c9067..7c4575e6215c61ca4b6dbe1dd0146d3dd1afc55e 100755 (executable)
@@ -33,10 +33,10 @@ class block_mentees extends block_base {
                                                          AND ra.contextid = c.id
                                                          AND c.instanceid = u.id
                                                          AND c.contextlevel = ".CONTEXT_USER, array($USER->id))) {
-                                           
+
             $this->content->text = '<ul>';
             foreach ($usercontexts as $usercontext) {
-                $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&amp;course=1">'.fullname($usercontext).'</a></li>';                
+                $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&amp;course=1">'.fullname($usercontext).'</a></li>';
             }
             $this->content->text .= '</ul>';
         }
@@ -46,4 +46,4 @@ class block_mentees extends block_base {
         return $this->content;
     }
 }
-?>
+
index ef811b8344ac81de87ee418478f424dbd5985c14..760d5fdbe0b39512d6d2768b7911802571786838 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 6668c29f35221febb387611eb1e61062171b3f0b..3f176f5f9e435a57be721b474e54a32927bcad61 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_messages extends block_base {
     function init() {
@@ -14,7 +14,7 @@ class block_messages extends block_base {
             if ($this->page->user_is_editing()) {
                 $this->content->text = get_string('disabled', 'message');
             }
-            return $this->content; 
+            return $this->content;
         }
 
         if ($this->content !== NULL) {
@@ -33,7 +33,7 @@ class block_messages extends block_base {
 
         $users = $DB->get_records_sql("SELECT m.useridfrom AS id, COUNT(m.useridfrom) AS count,
                                               u.firstname, u.lastname, u.picture, u.imagealt, u.lastaccess
-                                         FROM {user} u, {message} m 
+                                         FROM {user} u, {message} m
                                         WHERE m.useridto = ? AND u.id = m.useridfrom
                                      GROUP BY m.useridfrom, u.firstname,u.lastname,u.picture,u.lastaccess,u.imagealt", array($USER->id));
 
@@ -50,15 +50,15 @@ class block_messages extends block_base {
                 $this->content->text .= '<div class="message"><a href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\'; return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img class="iconsmall" src="'.$OUTPUT->old_icon_url('t/message') . '" alt="" />&nbsp;'.$user->count.'</a>';
                 $this->content->text .= '</div></li>';
             }
-            $this->content->text .= '</ul>'; 
+            $this->content->text .= '</ul>';
         } else {
             $this->content->text .= '<div class="info">';
             $this->content->text .= get_string('nomessages', 'message');
-            $this->content->text .= '</div>'; 
+            $this->content->text .= '</div>';
         }
 
         return $this->content;
     }
 }
 
-?>
+
index 8d7bc23e886d699c84cb34384e393b6c319e898e..bafebf03fa47971e5580887af7f0c24301c42014 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_mnet_hosts extends block_list {
     function init() {
@@ -44,13 +44,13 @@ class block_mnet_hosts extends block_list {
         // TODO: Test this query - it's appropriate? It works?
         // get the hosts and whether we are doing SSO with them
         $sql = "
-             SELECT DISTINCT 
-                 h.id, 
+             SELECT DISTINCT
+                 h.id,
                  h.name,
                  h.wwwroot,
                  a.name as application,
                  a.display_name
-             FROM 
+             FROM
                  {mnet_host} h,
                  {mnet_application} a,
                  {mnet_host2service} h2s_IDP,
@@ -100,4 +100,4 @@ class block_mnet_hosts extends block_list {
     }
 }
 
-?>
+
index cb312b6c0b62acdfe9c8194f245355af8f25459f..b43f7c1b0787f536a5b0a2444fb391fa7f39e71f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
@@ -106,7 +106,7 @@ class block_base {
      */
     var $config        = NULL;
 
-    /** 
+    /**
      * How often the cronjob should run, 0 if not at all.
      * @var int $cron
      */
@@ -130,25 +130,25 @@ class block_base {
     function __construct() {
         $this->block_base();
     }
-    
+
     /**
      * Function that can be overridden to do extra cleanup before
      * the database tables are deleted. (Called once per block, not per instance!)
      */
     function before_delete() {
     }
-    
+
     /**
      * Function that can be overridden to do extra setup after a block instance has been
      * restored from backup. For example, it may need to alter any dates that the block
-     * stores, if the $restore->course_startdateoffset is set.  
+     * stores, if the $restore->course_startdateoffset is set.
      */
     function after_restore($restore) {
     }
 
     /**
      * Enable custom instance data section in backup and restore.
-     * 
+     *
      * If return true, then {@link instance_backup()} and
      * {@link instance_restore()} will be called during
      * backup/restore routines.
@@ -160,11 +160,11 @@ class block_base {
     }
 
     /**
-     * Allows the block class to have a backup routine.  Handy 
-     * when the block has its own tables that have foreign keys to 
+     * Allows the block class to have a backup routine.  Handy
+     * when the block has its own tables that have foreign keys to
      * other tables (example: user table).
-     * 
-     * Note: at the time of writing this comment, the indent level 
+     *
+     * Note: at the time of writing this comment, the indent level
      * for the {@link full_tag()} should start at 5.
      *
      * @param resource $bf Backup File
@@ -177,10 +177,10 @@ class block_base {
 
     /**
      * Allows the block class to restore its backup routine.
-     * 
-     * Should not return false if data is empty 
+     *
+     * Should not return false if data is empty
      * because old backups would not contain block instance backup data.
-     * 
+     *
      * @param object $restore Standard restore object
      * @param object $data Object from backup_getid for this block instance
      * @return boolean
@@ -214,10 +214,10 @@ class block_base {
 
     /**
      * This function makes all the necessary calls to {@link restore_decode_content_links_worker()}
-     * function in order to decode contents of this block from the backup 
-     * format to destination site/course in order to mantain inter-activities 
-     * working in the backup/restore process. 
-     * 
+     * function in order to decode contents of this block from the backup
+     * format to destination site/course in order to mantain inter-activities
+     * working in the backup/restore process.
+     *
      * This is called from {@link restore_decode_content_links()} function in the restore process.
      *
      * NOTE: There is no block instance when this method is called.
@@ -277,7 +277,7 @@ class block_base {
     /**
      * Returns the class $title var value.
      *
-     * Intentionally doesn't check if a title is set. 
+     * Intentionally doesn't check if a title is set.
      * This is already done in {@link _self_test()}
      *
      * @return string $this->title
@@ -290,7 +290,7 @@ class block_base {
     /**
      * Returns the class $content_type var value.
      *
-     * Intentionally doesn't check if content_type is set. 
+     * Intentionally doesn't check if content_type is set.
      * This is already done in {@link _self_test()}
      *
      * @return string $this->content_type
@@ -303,7 +303,7 @@ class block_base {
     /**
      * Returns the class $version var value.
      *
-     * Intentionally doesn't check if a version is set. 
+     * Intentionally doesn't check if a version is set.
      * This is already done in {@link _self_test()}
      *
      * @return string $this->version
@@ -433,7 +433,7 @@ class block_base {
      *
      * @return boolean
      */
-     
+
     function _self_test() {
         // Tests if this block has been implemented correctly.
         // Also, $errors isn't used right now
@@ -448,7 +448,7 @@ class block_base {
             $errors[] = 'invalid_content_type';
             $correct = false;
         }
-        //following selftest was not working when roles&capabilities were used from block 
+        //following selftest was not working when roles&capabilities were used from block
 /*        if ($this->get_content() === NULL) {
             $errors[] = 'content_not_set';
             $correct = false;
@@ -495,7 +495,7 @@ class block_base {
         }
         return true;
     }
-    
+
     /**
      * Which page types this block may appear on.
      *
@@ -511,7 +511,7 @@ class block_base {
         // Default case: the block can be used in courses and site index, but not in activities
         return array('all' => true, 'mod' => false, 'tag' => false);
     }
-    
+
 
     /**
      * Default return is false - header will be shown
@@ -542,14 +542,14 @@ class block_base {
      */
     function html_attributes() {
         return array(
-            'id' => 'inst' . $this->instance->id, 
+            'id' => 'inst' . $this->instance->id,
             'class' => 'block_' . $this->name()
         );
     }
 
     /**
      * Set up a particular instance of this class given data from the block_insances
-     * table and the current page. (See {@link block_manager::load_blocks()}.) 
+     * table and the current page. (See {@link block_manager::load_blocks()}.)
      *
      * @param stdClass $instance data from block_insances, block_positions, etc.
      * @param moodle_page $the page this block is on.
@@ -731,7 +731,7 @@ class block_base {
     /** @callback callback functions for comments api */
     public static function comment_template($options) {
         $ret = <<<EOD
-<div class="comment-userpicture">___picture___</div> 
+<div class="comment-userpicture">___picture___</div>
 <div class="comment-content">
     ___name___ - <span>___time___</span>
     <div>___content___</div>
@@ -787,13 +787,13 @@ class block_list extends block_base {
 
 /**
  * Specialized class for displaying a tree menu.
- * 
+ *
  * The {@link get_content()} method involves setting the content of
  * <code>$this->content->items</code> with an array of {@link tree_item}
  * objects (these are the top-level nodes). The {@link tree_item::children}
  * property may contain more tree_item objects, and so on. The tree_item class
  * itself is abstract and not intended for use, use one of it's subclasses.
- * 
+ *
  * Unlike {@link block_list}, the icons are specified as part of the items,
  * not in a separate array.
  *
@@ -802,17 +802,17 @@ class block_list extends block_base {
  * @internal this extends block_list so we get is_empty() for free
  */
 class block_tree extends block_list {
-    
+
     /**
      * @var int specifies the manner in which contents should be added to this
      * block type. In this case <code>$this->content->items</code> is used with
      * {@link tree_item}s.
      */
     public $content_type = BLOCK_TYPE_TREE;
-    
+
     /**
      * Make the formatted HTML ouput.
-     * 
+     *
      * Also adds the required javascript call to the page output.
      *
      * @param moodle_core_renderer $output
index 941d8aaffcca93704931f467a42799f6022ec4d9..34b12cb5928919c43c69a63a857d7069a180d54d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_news_items extends block_base {
     function init() {
@@ -57,7 +57,7 @@ class block_news_items extends block_base {
 
         /// Get all the recent discussions we're allowed to see
 
-            if (! $discussions = forum_get_discussions($cm, 'p.modified DESC', false, 
+            if (! $discussions = forum_get_discussions($cm, 'p.modified DESC', false,
                                                        $currentgroup, $this->page->course->newsitems) ) {
                 $text .= '('.get_string('nonews', 'forum').')';
                 $this->content->text = $text;
@@ -116,4 +116,4 @@ class block_news_items extends block_base {
     }
 }
 
-?>
+
index 8f2c5100caa427e1c7057826ef307135852c3fe5..81fc020741dbf854f585c37d7faf3cf7f5170f54 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the news_items block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_news_items_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_news_items_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 97a939ecfa868c9b832d090ce3d0f5efd05e1d26..aa951a9de3bd598c09786ddde517c0d2180530d9 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 /**
  * This block needs to be reworked.
@@ -142,7 +142,7 @@ class block_online_users extends block_base {
                 $timeago = format_time(time() - $user->lastaccess); //bruno to calculate correctly on frontpage
                 $userpic = moodle_user_picture::make($user, $this->page->course->id);
                 $userpic->size = 16;
-                
+
                 if ($user->username == 'guest') {
                     $this->content->text .= '<div class="user">'.$OUTPUT->user_picture($userpic);
                     $this->content->text .= get_string('guestuser').'</div>';
@@ -167,4 +167,4 @@ class block_online_users extends block_base {
     }
 }
 
-?>
+
index d22923f3201da9fd0f89fd429464baf641745226..54b16e9023bfde811fd4412c646b87d1e2d0f76a 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -40,4 +40,4 @@ $block_online_users_capabilities = array(
     )
 );
 
-?>
+
index 501ff24fe3140d7cdc8bf4a3defd243035e05d2a..0773b0d0602686857ab0f1244f96ee1bb5c946dc 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the online_users block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_online_users_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_online_users_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 0098fb67d5096638d58cc53d4e81d432e4a56a87..4b5de1596fe952c51a3bbaa18b23ebad51f2a647 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
 $settings->add(new admin_setting_configtext('block_online_users_timetosee', get_string('timetosee', 'block_online_users'),
                    get_string('configtimetosee', 'block_online_users'), 5, PARAM_INT));
 
-?>
+
index 77dd5faee9ccd9fe22a3089cbefcc9199d66ea5e..3390868662ad2c8481fa37a4e4a8e03c5a01ec35 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_participants extends block_list {
     function init() {
@@ -49,4 +49,4 @@ class block_participants extends block_list {
 
 }
 
-?>
+
index 98b03be8a159fcdc750b049b5d38f3b4608ddaf3..9c161dd4a589af7c5afe3487e56cd469b5dec37b 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the participants block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_participants_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_participants_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index af2e0b45672e530be97d9189f467ba5a1413227f..d3e1b76e9253d326d269197984313b709000fc02 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 define('B_QUIZRESULTS_NAME_FORMAT_FULL', 1);
 define('B_QUIZRESULTS_NAME_FORMAT_ID',   2);
@@ -437,4 +437,4 @@ class block_quiz_results extends block_base {
     }
 }
 
-?>
+
index 1bfbfa6fe0fe743230f3bce1129c1cb2a8805f34..94f58b8c50329482d8892f2e9b087787fb4b176a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index c722549f28af1fc90aee876b08b5fa48d59f7932..02611747061b5b6307722781da6d3f14eeb6d137 100644 (file)
@@ -2,7 +2,7 @@
     text-align: center;
 }
 
-.block_quiz_results table.grades .number, 
+.block_quiz_results table.grades .number,
 .block_quiz_results table.grades .grade {
     text-align: right;
     width: 10%;
index 37284e95164b8f8ed54771a00d6896f104bc3f59..43c6b857d565b279ece24f3057472cba5dc918db 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_recent_activity extends block_base {
     function init() {
@@ -33,4 +33,4 @@ class block_recent_activity extends block_base {
         return array('all' => true, 'my' => false, 'tag' => false);
     }
 }
-?>
+
index d08f065aa0e4089fe6c1041891fbdf883efe1a6c..817cee63cb430388b83aeb9272af0893ff5492ab 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the recent_activity block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_recent_activity_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_recent_activity_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index bf4c1ad4618af3ffc6c527c03e2d03e4b8f30d9c..8a4d507c1737b3aa8069df60872d44ef3099759f 100644 (file)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 // This file is part of Moodle - http://moodle.org/
 //
     }
 
     /**
-     * cron - goes through all feeds and retrieves them with the cache 
+     * cron - goes through all feeds and retrieves them with the cache
      * duration set to 0 in order to force the retrieval of the item and
      * refresh the cache
      *
             @set_time_limit(60);
 
             $feed =  new moodle_simplepie();
-            // set timeout for longer than normal to be agressive at 
+            // set timeout for longer than normal to be agressive at
             // fetching feeds if possible..
             $feed->set_timeout(40);
             $feed->set_cache_duration(0);
     }
 }
 
-?>
+
index ab3905fa1362231d25c1b8328f236fdb218fb94f..c68ed49b0d6bbcf063d46a7db543be06de83f294 100644 (file)
@@ -57,4 +57,4 @@ $block_rss_client_capabilities = array(
 
 );
 
-?>
+
index 2593985a5a60aa52b506196384b3e093fffdaff5..8946f541eb6137494476320782705a9457699896 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the rss_client block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_rss_client_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -49,4 +49,4 @@ function xmldb_block_rss_client_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index e84397e789e6efe8b09d63e9e80ffe8d4e869271..4a6f233a03b3321ca855dd19e0fb1be9f8388f11 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index dceb56b2a6158fa1ba704d316f022100a828866e..a67da8965e7b9fa0396f98c57b95078c76bd132d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
@@ -117,7 +117,7 @@ class feed_edit_form extends moodleform {
     }
 
     /**
-     * Autodiscovers a feed url from a given url, to be used by the formslibs 
+     * Autodiscovers a feed url from a given url, to be used by the formslibs
      * filter function
      *
      * Uses simplepie with autodiscovery set to maximum level to try and find
index 0ad566a0a1431e1166b2f3a5e0fff2a258535af9..858a1121cc6ce64dec267121f41e7faa51e8d8f8 100644 (file)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 $settings->add(new admin_setting_configtext('block_rss_client_num_entries', get_string('numentries', 'block_rss_client'),
                    get_string('clientnumentries', 'block_rss_client'), 5, PARAM_INT));
index 1e121b0a7e38d649bd64de54c57a30628908de10..5da40c8fd9b0b696aa35f1581088c910d2b72a73 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 66d18be9b62d340799abfc9c53771e691e00ce35..0dc9e7070f9c61a2394336291b995988b64a113a 100644 (file)
@@ -16,7 +16,7 @@ global $DB;
             <b><?php print_string('configsearchtext', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_text" type="text" name="block_search_text" value="<?php 
+            <input id="block_search_text" type="text" name="block_search_text" value="<?php
             if(isset($CFG->block_search_text)) {
                 p($CFG->block_search_text);
             } else {
@@ -29,7 +29,7 @@ global $DB;
             <b><?php print_string('configbuttonlabel', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-          <input id="block_search_button" type="text" name="block_search_button" value="<?php 
+          <input id="block_search_button" type="text" name="block_search_button" value="<?php
             if(isset($CFG->block_search_button)) {
                 p($CFG->block_search_button);
             } else {
@@ -42,11 +42,11 @@ global $DB;
             <b><?php print_string('configenablefileindexing', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="1" <?php 
+            <input id="block_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="1" <?php
             if(isset($CFG->block_search_enable_file_indexing) && $CFG->block_search_enable_file_indexing) {
                 echo " checked=\"checked\" ";
-            } ?> /> <?php print_string('yes') ?> - 
-            <input id="block_search_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="0" <?php 
+            } ?> /> <?php print_string('yes') ?> -
+            <input id="block_search_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="0" <?php
             if(!isset($CFG->block_search_enable_file_indexing) || !$CFG->block_search_enable_file_indexing) {
                 echo " checked=\"checked\" ";
             } ?> /> <?php print_string('no') ?>
@@ -58,10 +58,10 @@ global $DB;
             <b><?php print_string('configfiletypes', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-          <input id="block_search_filetypes" type="text" name="block_search_filetypes" value="<?php 
+          <input id="block_search_filetypes" type="text" name="block_search_filetypes" value="<?php
             if(!isset($CFG->block_search_filetypes)) {
                 $CFG->block_search_filetypes = $defaultfiletypes;
-            } 
+            }
             p($CFG->block_search_filetypes);
             ?>" />
             <br/><br/>
@@ -72,12 +72,12 @@ global $DB;
             <b><?php print_string('usemoodleroot', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-        <?php 
-            $usemoodleroot = (isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ; 
-            $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ; 
+        <?php
+            $usemoodleroot = (isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
+            $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
         ?>
-          <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $usemoodleroot ?> value="1"/> <?php print_string('yes') ?> - 
-          <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value="0"/> <?php print_string('no') ?> 
+          <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $usemoodleroot ?> value="1"/> <?php print_string('yes') ?> -
+          <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value="0"/> <?php print_string('no') ?>
           <br/><br/>
         </td>
     </tr>
@@ -86,7 +86,7 @@ global $DB;
             <b><?php print_string('configlimitindexbody', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php 
+            <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php
             if(isset($CFG->block_search_limit_index_body)) {
                 p($CFG->block_search_limit_index_body);
             } else {
@@ -97,14 +97,14 @@ global $DB;
 </table>
 
 <fieldset name="">
-<legend align="top"><?php print_string('pdfhandling', 'block_search') ?></legend> 
+<legend align="top"><?php print_string('pdfhandling', 'block_search') ?></legend>
 <table cellspacing="5" width="90%">
     <tr>
         <td valign="top" align="right">
             <b><?php print_string('configpdftotextcmd', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php 
+            <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php
             if(isset($CFG->block_search_pdf_to_text_cmd)) {
                 p($CFG->block_search_pdf_to_text_cmd);
             } else {
@@ -121,14 +121,14 @@ global $DB;
 </fieldset>
 
 <fieldset name="">
-<legend align="top"><?php print_string('wordhandling', 'block_search') ?></legend> 
+<legend align="top"><?php print_string('wordhandling', 'block_search') ?></legend>
 <table cellspacing="5" width="90%">
     <tr>
         <td valign="top" align="right">
             <b><?php print_string('configwordtotextcmd', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php 
+            <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php
             if(isset($CFG->block_search_word_to_text_cmd)) {
                 p($CFG->block_search_word_to_text_cmd);
             } else {
@@ -146,7 +146,7 @@ global $DB;
             <b><?php print_string('configwordtotextenv', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php 
+            <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php
             if(isset($CFG->block_search_word_to_text_env)) {
                 echo $CFG->block_search_word_to_text_env;
             } else {
@@ -162,7 +162,7 @@ global $DB;
 </table>
 </fieldset>
 
-<?php 
+<?php
 $types = split(',', $CFG->block_search_filetypes);
 if (!empty($types)){
     foreach($types as $type) {
@@ -172,18 +172,18 @@ if (!empty($types)){
         if (preg_match("/\\b$type\\b/i", $defaultfiletypes)) continue;
 ?>
 <fieldset name="">
-<legend align="top"><?php echo get_string('handlingfor', 'block_search').' '.$utype ?></legend> 
+<legend align="top"><?php echo get_string('handlingfor', 'block_search').' '.$utype ?></legend>
 <table cellspacing="5" width="90%">
     <tr>
         <td valign="top" align="right">
             <b><?php print_string('configtypetotxtcmd', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_<?php p($type) ?>_to_text_cmd" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_cmd" value="<?php 
+            <input id="block_search_<?php p($type) ?>_to_text_cmd" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_cmd" value="<?php
             $propname = "block_search_{$type}_to_text_cmd";
             if(isset($CFG->$propname)) {
                 p($CFG->$propname);
-            } 
+            }
             ?>"/>
             <br/><br/>
         </td>
@@ -193,7 +193,7 @@ if (!empty($types)){
             <b><?php print_string('configtypetotxtenv', 'block_search') ?>:</b>
         </td>
         <td valign="top" align="left">
-            <input id="block_search_<?php p($type) ?>_to_text_env" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_env" value="<?php 
+            <input id="block_search_<?php p($type) ?>_to_text_env" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_env" value="<?php
             $propname = "block_search_{$type}_to_text_env";
             if(isset($CFG->$propname)) {
                 echo $CFG->$propname;
@@ -208,7 +208,7 @@ if (!empty($types)){
 ?>
 
 <fieldset name="">
-<legend align="top"><?php echo get_string('searchdiscovery', 'block_search') ?></legend> 
+<legend align="top"><?php echo get_string('searchdiscovery', 'block_search') ?></legend>
 <table>
     <tr>
         <td>
@@ -224,7 +224,7 @@ if (!empty($types)){
 </fieldset>
 
 <fieldset name="">
-<legend align="top"><?php echo get_string('modulessearchswitches', 'block_search') ?></legend> 
+<legend align="top"><?php echo get_string('modulessearchswitches', 'block_search') ?></legend>
 <table cellspacing="5" width="90%">
     <tr valign="top">
         <td align="left">
@@ -245,10 +245,10 @@ if ($modules = $DB->get_records_select('modules', "name $searchable_list", $para
         }
         $found_searchable_modules = 1;
     }
-} 
+}
 if (!$found_searchable_modules) {
     print_string('nosearchablemodules', 'block_search');
-}  
+}
 ?>
 
         </td>
@@ -257,7 +257,7 @@ if (!$found_searchable_modules) {
 </fieldset>
 
 <fieldset name="">
-<legend align="top"><?php echo get_string('blockssearchswitches', 'block_search') ?></legend> 
+<legend align="top"><?php echo get_string('blockssearchswitches', 'block_search') ?></legend>
 <table cellspacing="5" width="90%">
     <tr valign="top">
         <td align="left">
@@ -270,7 +270,7 @@ if ($blocks = $DB->get_records_select('block', "name $searchable_list", $params,
         $keyname = "search_in_{$block->name}";
         $checked = (!isset($CFG->$keyname) || $CFG->$keyname) ? 'checked="checked"' : '' ;
         echo "<input type=\"checkbox\" name=\"search_in_{$block->name}\" value=\"1\" {$checked} />";
-        
+
         // multiple fallback strategy to get the name of the block
         $blocklabel = get_string('blockname', 'block_'.$block->name);
         if ($blocklabel == '[[blockname]]') $blocklabel = get_string($block->name, 'block_'.$block->name);
@@ -281,10 +281,10 @@ if ($blocks = $DB->get_records_select('block', "name $searchable_list", $params,
         }
         $found_searchable_blocks = 1;
     }
-}    
+}
 if (!$found_searchable_blocks) {
     print_string('nosearchableblocks', 'block_search');
-}  
+}
 ?>
 
         </td>
index 78089ee4d88f845ffd1e8954e387ee47c36a15c8..1c6da1de016f336d3d6a4c461b2331c6ae6a0ca2 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the search block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_search_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -40,4 +40,4 @@ function xmldb_block_search_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index fd641f744b3ae1e7baea3b137a3364344d22c9f8..0d5f618c0cadc4e3827f725c87f87af2d12111f7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_search_forums extends block_base {
     function init() {
@@ -28,13 +28,13 @@ class block_search_forums extends block_base {
         //Accessibility: replaced <input value=" />" type="submit"> with configurable text/'silent' character.
         // Theme config, $CFG->block_search_button = get_arrow_right() .'<span class="accesshide">'.get_string('search').'</span>';
         $button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go');
-        
+
         $this->content->text  = '<div class="searchform">';
         $this->content->text .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline"><fieldset class="invisiblefieldset">';
         $this->content->text .= '<input name="id" type="hidden" value="'.$this->page->course->id.'" />';  // course
         $this->content->text .= '<label class="accesshide" for="searchform_search">'.$search.'</label>'.
                                 '<input id="searchform_search" name="search" type="text" size="16" />';
-        $this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />'; 
+        $this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
         $this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
         $this->content->text .= $OUTPUT->help_icon(moodle_help_icon::make('search', $advancedsearch));
         $this->content->text .= '</fieldset></form></div>';
@@ -47,4 +47,4 @@ class block_search_forums extends block_base {
     }
 }
 
-?>
+
index 19579a98de88139c99f089231665febca1bf8ed9..5c78d214b473da228afcdafb16abb81b22eb2351 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the search_forums block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_search_forums_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_search_forums_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index eadb0fb4088b4836bec84d087422b2e73d45a674..391091392be4a74e4365b115c55268b9d520556f 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_section_links extends block_base {
 
@@ -112,4 +112,4 @@ class block_section_links extends block_base {
     }
 }
 
-?>
+
index 69475c56e800918f9296fe3b1ba043e960104026..143824d53f5c60bd8539b3c1b8137c8cdf27aa2a 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the section_links block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_section_links_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_section_links_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index f904cdd584f95d25a97a08d00d8c9880c15cffd9..704eeb37f6829f5c22d88e7f012910424f252e1d 100644 (file)
@@ -152,7 +152,7 @@ class block_settings_navigation_tree extends block_tree {
 
             if (!empty($this->config->enablesidebarpopout) && $this->config->enablesidebarpopout == 'yes') {
                 user_preference_allow_ajax_update('nav_in_tab_panel_settingsnav'.block_settings_navigation_tree::$navcount, PARAM_INT);
-                
+
                 $moveicon = new moodle_action_icon();
                 $moveicon->link->add_classes('moveto customcommand requiresjs');
                 $moveicon->link->url = $this->page->url;
index 7d61d211597c8f0ee5f9bf1b92c92cddcbb131bd..15c3fd7fad15b3559a082ec43131a6009be1b2fb 100644 (file)
@@ -1,4 +1,4 @@
-<?php   //$Id$
+<?php
 
 class block_site_main_menu extends block_list {
     function init() {
@@ -156,4 +156,4 @@ class block_site_main_menu extends block_list {
     }
 }
 
-?>
+
index 789cea388e42a7ac9ad6f02d91c3b745ac8467ba..79aa8a1f12ad200898342c485356115fd65cccac 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class block_social_activities extends block_list {
     function init(){
@@ -165,4 +165,4 @@ class block_social_activities extends block_list {
     }
 }
 
-?>
+
index e5b70b051ce4d5b98a7144f25b5336a4edd72d40..59a1b8eb249bc944d4871e904aa4dc6df19bb114 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the social_activities block
 //
 // Sometimes, changes between versions involve
@@ -26,8 +26,8 @@ function xmldb_block_social_activities_upgrade($oldversion) {
     $dbman = $DB->get_manager();
     $result = true;
 
-/// And upgrade begins here. For each one, you'll need one 
-/// block of code similar to the next one. Please, delete 
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
 /// this comment lines once this file start handling proper
 /// upgrade code.
 
@@ -38,4 +38,4 @@ function xmldb_block_social_activities_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index da6d1ebe7b29fb1a50f8b60e7d09ab2baf54e83f..9ceff59a4de4427f148b54d7def940451619ab01 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $id$
+<?php
 
 require_once($CFG->dirroot.'/tag/lib.php');
 require_once($CFG->libdir . '/filelib.php');
@@ -161,4 +161,4 @@ class block_tag_flickr extends block_base {
     }
 }
 
-?>
+
index 4f7a8557740d5256f2b476c06adb0f373f72f691..51898466f3349d1a4ce9822092c2823602a62478 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 4405afe8648d74dfbb687e16c4b74e7e1ec526c6..6a976be97bcb2045388e078924b24ddc2d0b0ca5 100644 (file)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 require_once($CFG->dirroot.'/tag/lib.php');
 require_once($CFG->libdir . '/filelib.php');
@@ -166,4 +166,4 @@ class block_tag_youtube extends block_base {
         return $text;
     }
 }
-?>
+
index def450dc2a6bdefd2c7cca7ca55830646c24c9e5..854a31be3d5e145c47e7434cbd4ba918a4562b37 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 7258ab3a6ef64244b1698ffe65b67123f23ce749..4d8222e7fbee9dab9b8b7e50256abb3113927152 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php
 
 class block_tags extends block_base {
     function init() {
@@ -322,4 +322,4 @@ EOT;
         return $this->content;
     }
 }
-?>
+
index 060202b212cd956a36250a2394b4747b1f8c4c63..3a859211f4d521a10626f6818922a318826ed9a8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-// This file is part of Moodle - http://moodle.org/ 
-// 
+// This file is part of Moodle - http://moodle.org/
+//
 // Moodle is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation, either version 3 of the License, or
@@ -11,7 +11,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
index 3e5bdea81bb407e683e683ab3aaeb845bf16ebac..f5f6752d54946cb66eced72bb46aebbbc205bbad 100644 (file)
@@ -3,4 +3,4 @@
 $settings->add(new admin_setting_configcheckbox('block_tags_showcoursetags', get_string('showcoursetags', 'block_tags'),
                    get_string('showcoursetagsdef', 'block_tags'), 0));
 
-?>
+
index b97985e42f2cb29331f31cad8c75f2d0fee47b40..256cc2532a11d96b3b38d04c8802a2fdf4edd3bb 100644 (file)
@@ -13,7 +13,7 @@ required changes in code:
 * rewrite backup/restore
 
 optional - no changes needed in older code:
-* 
+*
 
 
 TODO: add links to docs
\ No newline at end of file
index fc77d5960a527c55523ecb46e965f74571b5cc90..56078143acab0cfdf9d80a83e185b7618a6cee44 100755 (executable)
@@ -162,4 +162,3 @@ function blog_rss_save_file($type, $id, $tagid=0, $contents='') {
     return $status;
 }
 
-?>
index a77d43a2f83b8f9e5d24004e963f42139446c7e4..bc5a1c8d0c0b8a4645262aa2ba497aef45590c4f 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of the blog module
@@ -7,4 +7,4 @@
 
 $blog_version  = 2009070600;  // The current version of blog module (Date: YYYYMMDDXX)
 $module->cron     = 1800;           // Period for cron to check this module (secs)
-?>
+
index c81fd27c8e87019596df939db89bcde400bfbb2a..f2a3d0247e8f01b8390021b4e3b0794d5e91de29 100644 (file)
@@ -176,6 +176,3 @@ echo $OUTPUT->header();
 
 <?php
     echo $OUTPUT->footer();
-
-
-?>
index bf7a67fe73441aa1b89b3fae41fb9efff690d24d..af2af7d754667128ab52173ad4e4753b7a63fb3e 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
  * Create and allocate users go groups
  *
@@ -250,4 +250,3 @@ if($preview !== '') {
 }
 
 echo $OUTPUT->footer();
-?>
index 06887e6b38405b69ae80f6d191d1d23dcf1733e6..016713d3d98fc5a7fc10cd172df8dca9824b3439 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -133,5 +133,3 @@ class autogroup_form extends moodleform {
         return $errors;
     }
 }
-
-?>
index cf731eb48a0f78aa59dbeb31c4d691c66fed2adb..db0e2e4adbeb7c3e856a3f46997a46ad1738c57f 100644 (file)
@@ -75,4 +75,3 @@ if ($confirm && data_submitted()) {
     echo $OUTPUT->confirm($message, $formcontinue, $formcancel);
     echo $OUTPUT->footer();
 }
-?>
index e58bf70edd793f3519ea9e621efa0d9f0f8f57fe..c706ecb85eeb29d084215c79124f8be924f2a1d7 100644 (file)
@@ -450,4 +450,4 @@ class moodle_group_external extends external_api {
         return null;
     }
 
-}
\ No newline at end of file
+}
index eb4f34daf0ed8cd1491b53dbac06346ee1a3eded..ed5d4c920d7c1c60ebe1626f4f11709f2caf170e 100644 (file)
@@ -126,4 +126,3 @@ if ($id) {
 echo '</div>';
 $editform->display();
 echo $OUTPUT->footer();
-?>
index 95fbe17f8bdce65425fd7751b18a0ae6854616be..e99511df3b5295ad97c3b3542f82deb4a25d1b55 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -75,5 +75,3 @@ class group_form extends moodleform {
         return $this->_upload_manager;
     }
 }
-
-?>
index f2e295785c7ae66389b9fecd1b2945712fde0ec4..d7ffbce74b715d4944a11c4cbb2f4ac21210e717 100644 (file)
@@ -118,5 +118,3 @@ echo $OUTPUT->header();
 echo $OUTPUT->heading($strheading);
 $editform->display();
 echo $OUTPUT->footer();
-
-?>
index c63b2d4316387acab0f349f758a7948d957e2dbd..2d986f8f821f72de024ea87a45765006a777259f 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -50,4 +50,3 @@ class grouping_form extends moodleform {
     }
 
 }
-?>
index 64e87f6b6dd87d5b6d48daf5b7ade5e487a22914..f6caadd1909eed9b70c611ef03c9982059d4c31c 100644 (file)
@@ -105,5 +105,3 @@ echo $OUTPUT->button(html_form::make_button('grouping.php', array('courseid'=>$c
 echo $OUTPUT->container_end();
 
 echo $OUTPUT->footer();
-
-?>
index f0a8dd1fdc9a33df6d6266005b193970fed46a8b..6e3f62963ecb2e48f8750862de113194348e71e3 100644 (file)
@@ -303,5 +303,3 @@ function groups_param_action($prefix = 'act_') {
     ///if (debugging()) echo 'Debug: '.$action;
     return $action;
 }
-
-?>
index db5796845017555b003c8e1f622b0ec482d45ac6..9abacf49a4522e3c79b6b57705013e05a8562d5d 100644 (file)
@@ -718,5 +718,3 @@ function groups_calculate_role_people($rs, $context) {
     // Return list of roles containing their users
     return $roles;
 }
-
-?>
index 40e2b2bae03a56d571b809d0c783ca0b75f9986d..98fbaa60881da3202c8ab46f5939deb35b65aa76 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
  * Add/remove members from group.
  *
@@ -129,4 +129,3 @@ check_theme_arrows();
 
 <?php
     echo $OUTPUT->footer();
-?>
index 0b14a741c938e4107304b6820a4a04c83a6b81c7..c6a5ae6934550c206c11dcc9e17f382d3b05a7bc 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
  * Print an overview of groupings & group membership
  *
@@ -208,4 +208,3 @@ foreach ($members as $gpgid=>$groupdata) {
 }
 
 echo $OUTPUT->footer();
-?>
index b9a906ed6c5ecd1ce066e9e93980332cbe8b4443..9794c7326ab39de0232136473d5aabf8bc38b769 100644 (file)
@@ -285,4 +285,3 @@ class group_external_test extends UnitTestCase {
     }
 */
 }
-?>
index ae2e87d93a7b4bd51551f7a989d2d6fb47873fbe..42b38603a4ffea6dc36b927f65beee597df3ef25 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
     $row = $tabs = array();
     $row[] = new tabobject('groups',
                            $CFG->wwwroot.'/group/index.php?id='.$courseid,
@@ -17,4 +17,3 @@
     echo '<div class="groupdisplay">';
     print_tabs($tabs, $currenttab);
     echo '</div>';
-?>