]> 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:34:33 +0000 (12:34 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 12:34:33 +0000 (12:34 +0000)
18 files changed:
sso/hive/expired.php
sso/hive/lib.php
sso/hive/login.php
tag/coursetags_add.php
tag/coursetags_edit.php
tag/coursetags_more.php
tag/coursetagslib.php
tag/edit.php
tag/edit_form.php
tag/index.php
tag/lib.php
tag/locallib.php
tag/manage.php
tag/search.php
tag/tag_autocomplete.php
tag/user.php
userpix/index.php
userpix/upgrade.php

index d19cd02b3f56c2b63141c1f4c40930cb5c08048e..689cadf9da429ba1cc7bb6cf80f06a2029ffd602 100644 (file)
@@ -45,4 +45,3 @@
 <br />
 <?php
     echo $OUTPUT->close_window_button();
-?>
index 758d603d844ce8380bc8c8c00b90cc9c087c3f24..468b3d870ea8b86c0e1b182b4f3195dd9feb44a1 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
        // Logs into Hive from HarvestRoad and stores session ID in Moodle session
        // Martin Dougiamas, Moodle
        //
@@ -75,5 +75,3 @@ function sso_user_login($username, $password) {
 
     return false;  // No cookie found
 }
-
-?>
index 1afa9206561be3768ef7e58ccfbd5fd203946c19..c1e105494e27bec2d9068d9d69caf090d64a1b63 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
        // login.php - action of the login form put up by expired.php.
 
     require('../../config.php');
@@ -18,5 +18,3 @@
     } else {
         redirect($CFG->wwwroot.'/sso/hive/expired.php');
     }
-
-?>
index acdaf1d1bfb7b628051b80507ee4c7b47bdb7f1f..b61bba1e99d1d60554a384be87e76255dcec507d 100644 (file)
@@ -39,5 +39,3 @@ if ($courseid > 0) {
 }
 
 redirect($myurl);
-
-?>
index dadf4a79a45474a33be49c1cf26a011671e0feaf..2ada5abfd3abbe5bf1788f773d1771b08ee9503c 100644 (file)
@@ -188,4 +188,3 @@ EOT2;
     }
 
 echo $OUTPUT->footer();
-?>
index a49eccb217a2e299dbe54257d4eff8ce38f7a9ca..094b1ab10ce34acb2a3c25e22de114a254dbab71 100644 (file)
@@ -198,4 +198,3 @@ $outstr = '
 echo $outstr;
 
 echo $OUTPUT->footer();
-?>
index 959e342edb5f790d8f0da864baa5d22bc9456a0c..a243e310971e332d93e62b92f79d54d3559788a5 100644 (file)
@@ -266,7 +266,7 @@ function coursetag_get_jscript($coursetagdivs = '') {
  */
 function coursetag_get_jscript_links($coursetagslinks) {
     global $PAGE;
-    
+
     if (!empty($coursetagslinks)) {
         foreach ($coursetagslinks as $a) {
             $PAGE->requires->js_function_call('add_tag_footer_link', array('coursetagslinks', $a['title'], $a['onclick'], $a['text']))->on_dom_ready();
@@ -656,5 +656,3 @@ function coursetag_get_official_keywords($courseid, $asarray=false) {
     return $returnstr;
 }
 */
-
-?>
index 94fee1c7d985b954132e27f9ac14566ac39fb5a8..742e3520099583488ac1cc04c420d8fe2dcd05ae 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once('../config.php');
 require_once('lib.php');
@@ -99,21 +99,21 @@ if ($tagnew = $tagform->get_data()) {
                 print_error('errorupdatingrecord', 'tag');
             }
         }
-        
+
         //log tag changes activity
         //if tag name exist from form, renaming is allow.  record log action as rename
-        //otherwise, record log action as update       
+        //otherwise, record log action as update
         if (isset($tagnew->name) && ($tag->name != $tagnew->name)){
             add_to_log($COURSE->id, 'tag', 'update', 'index.php?id='. $tag->id, $tag->name . '->'. $tagnew->name);
 
-        } elseif ($tag->description != $tagnew->description) {  
+        } elseif ($tag->description != $tagnew->description) {
             add_to_log($COURSE->id, 'tag', 'update', 'index.php?id='. $tag->id, $tag->name);
         }
-        
+
         //updated related tags
         tag_set('tag', $tagnew->id, explode(',', trim($tagnew->relatedtags)));
         //print_object($tagnew); die();
-    
+
         redirect($CFG->wwwroot.'/tag/index.php?tag='.rawurlencode($tag->name)); // must use $tag here, as the name isn't in the edit form
     }
 }
@@ -135,5 +135,3 @@ if (ajaxenabled()) {
     $PAGE->requires->js_function_call('init_tag_autocomplete')->on_dom_ready();
 }
 echo $OUTPUT->footer();
-
-?>
index 8e781a580d09c63269d0617284ce78db16a2c9dc..67396f6071225761824770c89341211ba9d136b8 100644 (file)
@@ -16,7 +16,7 @@ class tag_edit_form extends moodleform {
         $systemcontext   = get_context_instance(CONTEXT_SYSTEM);
 
         if (has_capability('moodle/tag:manage', $systemcontext)) {
-            $mform->addElement('text', 'rawname', get_string('name', 'tag'), 
+            $mform->addElement('text', 'rawname', get_string('name', 'tag'),
                     'maxlength="'.TAG_MAX_LENGTH.'" size="'.TAG_MAX_LENGTH.'"');
         }
 
@@ -25,7 +25,7 @@ class tag_edit_form extends moodleform {
         $mform->addElement('format', 'descriptionformat', get_string('format'));
 
         if (has_capability('moodle/tag:manage', $systemcontext)) {
-           $mform->addElement('checkbox', 'tagtype', get_string('officialtag', 'tag')); 
+           $mform->addElement('checkbox', 'tagtype', get_string('officialtag', 'tag'));
         }
 
         $mform->addElement('html', '<br/><div id="relatedtags-autocomplete-container">');
@@ -39,5 +39,3 @@ class tag_edit_form extends moodleform {
     }
 
 }
-
-?>
index 9cf65f84c0f6f0558449f3281cf5e32df23f5cf8..020428c43c09e5960d2d1bf81862ac9d0408cab1 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once('../config.php');
 require_once('lib.php');
@@ -153,4 +153,3 @@ if ($usercount > 0) {
 }
 
 echo $OUTPUT->footer();
-?>
index 9e9b2fffed8cf9f949011c6614e28551ed995e9d..b2e7003e4af7d1ddfae44f562102632f0e514144 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 /**
  * Moodle tag library
@@ -1032,5 +1032,3 @@ function tag_unset_flag($tagids) {
     $timemodified = time();
     return $DB->execute("UPDATE {tag} SET flag = 0, timemodified = ? WHERE id IN ($tagids)", array($timemodified));
 }
-
-?>
index f7892c741bcdec8322ae631a20ca3bf649ff0a4b..9107731a2080737cfca46f69d32be7fafb2e0d33 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once('lib.php');
 
@@ -385,6 +385,3 @@ function tag_print_user_list($userlist, $return=false) {
         echo $output;
     }
 }
-
-
-?>
index d909966f4560fbe707a2b79696534eb135ee437b..1c2cf71f99c1de913d46e04ee7ad048eab051ec7 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once('../config.php');
 require_once($CFG->libdir.'/tablelib.php');
@@ -53,7 +53,7 @@ switch($action) {
         if (!data_submitted() or !confirm_sesskey()) {
             break;
         }
-        
+
         $str_tagschecked = implode(', ', tag_get_name($tagschecked));
         tag_delete($tagschecked);
         $notice = $str_tagschecked.' --  '.get_string('deleted','tag');
@@ -96,7 +96,7 @@ switch($action) {
         if (!data_submitted() or !confirm_sesskey()) {
             break;
         }
-        
+
         $tags_names_changed = array();
         foreach ($tagschecked as $tag_id) {
             if ($newnames[$tag_id] != '') {
@@ -276,5 +276,3 @@ if ($perpage == SHOW_ALL_PAGE_SIZE) {
 echo '<br/>';
 
 echo $OUTPUT->footer();
-
-?>
index 047e980cc68e9e7d127218246bdd6c37e473d3a4..3d883cd6c0dd33aa088f1977f0bdf5d8067fcdd7 100644 (file)
@@ -53,5 +53,3 @@ tag_print_cloud(150);
 echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
-
-?>
index f3f24d1cab0d14516a4f2757b8a0cc7ed8d4c59e..ef87e09d0e1ff3dace28bcb62e57b23078e9aa06 100644 (file)
@@ -16,5 +16,3 @@ if ($similar_tags = tag_autocomplete($query)) {
         echo $tag->name . "\t" . tag_display_name($tag) . "\n";
     }
 }
-
-?>
index df1722f48092cb8f6b0a9b82f2f94bbc9b646e2b..20d21b20e3885b0ca1749a4e5309234dab384eef 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 require_once('../config.php');
 require_once('lib.php');
@@ -6,7 +6,7 @@ require_once('lib.php');
 $action = optional_param('action', '', PARAM_ALPHA);
 $id = optional_param('id', 0, PARAM_INT);
 $tag = optional_param('tag', '', PARAM_TAG);
-        
+
 require_login();
 
 if (empty($CFG->usetags)) {
@@ -26,8 +26,8 @@ switch ($action) {
     case 'addinterest':
         if (empty($tag) && $id) { // for backward-compatibility (people saving bookmarks, mostly..)
             $tag = tag_get_name($id);
-        } 
-        
+        }
+
         tag_set_add('user', $USER->id, $tag);
 
         redirect($CFG->wwwroot.'/tag/index.php?tag='. rawurlencode($tag));
@@ -36,7 +36,7 @@ switch ($action) {
     case 'removeinterest':
         if (empty($tag) && $id) { // for backward-compatibility (people saving bookmarks, mostly..)
             $tag = tag_get_name($id);
-        } 
+        }
 
         tag_set_delete('user', $USER->id, $tag);
 
@@ -44,9 +44,9 @@ switch ($action) {
         break;
 
     case 'flaginappropriate':
-        
+
         tag_set_flag(tag_get_id($tag));
-        
+
         redirect($CFG->wwwroot.'/tag/index.php?tag='. rawurlencode($tag), get_string('responsiblewillbenotified', 'tag'));
         break;
 
@@ -54,5 +54,3 @@ switch ($action) {
         print_error('unknowaction');
         break;
 }
-
-?>
index 50ac819ed112696b39580c7fce2541ce139905ca..a842afba9843e7828bcfdc9e8ae37a1b4b2a7901 100644 (file)
@@ -38,5 +38,3 @@
     }
 
     echo $OUTPUT->footer();
-
-?>
index b0ba57b8a41fbbe3996354aeeb7fb15a61805a21..2e53f8eec4ab23dac72c48a949441ba204afa3ec 100644 (file)
@@ -35,5 +35,3 @@
     }
 
     echo $OUTPUT->footer();
-
-?>