Merge branch 'MDL-31017' of git://github.com/stronk7/moodle
authorSam Hemelryk <sam@moodle.com>
Wed, 4 Jan 2012 22:17:31 +0000 (11:17 +1300)
committerSam Hemelryk <sam@moodle.com>
Wed, 4 Jan 2012 22:17:31 +0000 (11:17 +1300)
auth/ldap/config.html
auth/shibboleth/README.txt
auth/shibboleth/login.php
backup/util/settings/backup_setting.class.php
backup/util/settings/simpletest/testsettings.php
backup/util/structure/backup_optigroup.class.php
backup/util/ui/backup_ui.class.php
backup/util/ui/module.js
backup/util/ui/yui/confirmcancel/confirmcancel.js

index 43e4d0a..25c6786 100644 (file)
@@ -520,7 +520,7 @@ $yesno = array(get_string('no'), get_string('yes'));
         <?php echo html_writer::select($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath, false); ?>
     </td>
     <td>
-       <?php print_string('auth_ntlmsso_ie_fastpath', 'auth_ldap') ?>
+    <?php print_string('auth_ntlmsso_ie_fastpath', 'auth_ldap') ?>
     </td>
 </tr>
 <tr valign="top">
index 57af63c..a343c85 100644 (file)
@@ -278,8 +278,8 @@ just before the <MetadataProvider> element.
 
 --
 <Notify
-       Channel="back"
-       Location="https://#YOUR_MOODLE_HOSTNAME#/moodle/auth/shibboleth/logout.php" />
+    Channel="back"
+    Location="https://#YOUR_MOODLE_HOSTNAME#/moodle/auth/shibboleth/logout.php" />
 --
 
 Then restart the Shibboleth daemon and check the log file for errors. If there
@@ -300,9 +300,9 @@ Requirements:
 
 --
 <Directory /path/to/moodle/auth/shibboleth/logout.php>
-       AuthType shibboleth
-       ShibRequireSession Off
-       require shibboleth
+    AuthType shibboleth
+    ShibRequireSession Off
+    require shibboleth
 </Directory>
 --
   When using IIS, the same can be achieved by something like:
index 1591c24..0b635ac 100644 (file)
@@ -42,12 +42,12 @@ $PAGE->https_required();
         set_saml_cookie($selectedIdP);
 
         // Redirect to SessionInitiator with entityID as argument
-        if (isset($IdPs[$selectedIdP][1]) && !empty($IdPs[$selectedIdP][1])){
+        if (isset($IdPs[$selectedIdP][1]) && !empty($IdPs[$selectedIdP][1])) {
             // For Shibbolet 1.x Service Providers
-           header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
+            header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
 
-           // For Shibbolet 2.x Service Providers
-           // header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
+            // For Shibbolet 2.x Service Providers
+            // header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
 
         } else {
             // For Shibbolet 1.x Service Providers
index 90de0e1..2d19245 100644 (file)
@@ -49,7 +49,7 @@ abstract class backup_setting extends base_setting implements checksumable {
 
     /**
      * Returns the level of the setting
-     * 
+     *
      * @return {int} One of the above constants
      */
     public function get_level() {
index 7bc9e65..fd079cc 100644 (file)
@@ -145,7 +145,7 @@ class setting_test extends UnitTestCase {
             $this->assertEqual($e->errorcode, 'incorrect_object_passed');
         }
         restore_error_handler();
-        
+
         // Try to change value of locked setting by permission
         $bs = new mock_base_setting('test', base_setting::IS_BOOLEAN, null, null, base_setting::LOCKED_BY_PERMISSION);
         try {
@@ -448,4 +448,4 @@ function backup_setting_error_handler($errno, $errstr, $errfile, $errline, $errc
         return false;
     }
     throw new backup_setting_exception('incorrect_object_passed');
-}
\ No newline at end of file
+}
index e4ee2c9..2469d51 100644 (file)
@@ -47,7 +47,7 @@ class backup_optigroup extends base_optigroup implements processable {
     public function add_child($element) {
         if (!($element instanceof backup_optigroup_element)) { // parameter must be backup_optigroup_element
             if (is_object($element)) {
-                   $found = get_class($element);
+                $found = get_class($element);
             } else {
                 $found = 'non object';
             }
index 91c412f..d906d7c 100644 (file)
@@ -137,7 +137,7 @@ class backup_ui extends base_ui {
      */
     public function get_progress_bar() {
         global $PAGE;
-        
+
         $stage = self::STAGE_COMPLETE;
         $currentstage = $this->stage->get_stage();
         $items = array();
@@ -190,4 +190,4 @@ class backup_ui extends base_ui {
 /**
  * Backup user interface exception. Modelled off the backup_exception class
  */
-class backup_ui_exception extends base_ui_exception {}
\ No newline at end of file
+class backup_ui_exception extends base_ui_exception {}
index b6cd314..c6dac65 100644 (file)
@@ -16,7 +16,7 @@ M.core_backup_files_tree = {
             // XXX: the id in params['contextid'] is current context
             // request file list, so should be user context
             params['contextid'] = this.usercontextid;
-        } 
+        }
         var scope = this;
         params['sesskey']=M.cfg.sesskey;
         var cfg = {
@@ -38,14 +38,14 @@ M.core_backup_files_tree = {
                                 var n = new YAHOO.widget.TextNode(info, node, false);
                                 YAHOO.util.Event.addListener(n.labelElId, "click", function(e) {
                                     YAHOO.util.Event.preventDefault(e);
-                                }); 
+                                });
                                 n.isLeaf = false;
                             } else {
                                 var params = data[i].params;
                                 if (params['filearea'] == 'backup' && params['component'] == 'user') {
                                     // XXX: display the restore link, so should be context id
                                     params['contextid'] = scope.currentcontextid;
-                                } 
+                                }
                                 params.action = 'choosebackupfile';
                                 var restoreurl = M.cfg.wwwroot+'/backup/restorefile.php?'+build_querystring(params);
                                 var info = {label: data[i].filename, 'href': data[i].url, 'restoreurl': restoreurl};
@@ -89,14 +89,14 @@ M.core_backup_files_tree = {
                 // prevent link
                 YAHOO.util.Event.addListener(node.labelElId, "click", function(e) {
                     YAHOO.util.Event.preventDefault(e);
-                }); 
+                });
             } else {
                 node.isLeaf = true;
             }
         }
         tree.render();
         this.y3 = Y;
-    }, 
+    },
     dynload: function(node, oncompletecb) {
         M.core_backup_files_tree.request(node.href, node, oncompletecb);
     },
@@ -115,7 +115,7 @@ M.core_backup_files_tree = {
 
 YAHOO.widget.RestoreNode = function(oData, oParent, expanded) {
 
-    if (oData) { 
+    if (oData) {
         if (YAHOO.lang.isString(oData)) {
             oData = { label: oData };
         }
@@ -132,10 +132,10 @@ YAHOO.extend(YAHOO.widget.RestoreNode, YAHOO.widget.TextNode, {
     href: null,
     target: "_blank",
     _type: "RestoreNode",
-    setUpLabel: function(oData) { 
+    setUpLabel: function(oData) {
         if (YAHOO.lang.isString(oData)) {
-            oData = { 
-                label: oData 
+            oData = {
+                label: oData
             };
         } else {
             if (oData.style) {
@@ -147,7 +147,7 @@ YAHOO.extend(YAHOO.widget.RestoreNode, YAHOO.widget.TextNode, {
         this.restoreurl = oData.restoreurl;
         this.labelElId = "ygtvlabelel" + this.index;
     },
-    getContentHtml: function() { 
+    getContentHtml: function() {
         var sb = [];
         sb[sb.length] = '<a';
         sb[sb.length] = ' id="' + this.labelElId + '"';
@@ -155,7 +155,7 @@ YAHOO.extend(YAHOO.widget.RestoreNode, YAHOO.widget.TextNode, {
         if (this.href) {
             sb[sb.length] = ' href="' + this.href + '"';
             sb[sb.length] = ' target="' + this.target + '"';
-        } 
+        }
         if (this.title) {
             sb[sb.length] = ' title="' + this.title + '"';
         }
index 267b853..6d84615 100644 (file)
@@ -4,7 +4,7 @@ YUI.add('moodle-backup-confirmcancel', function(Y) {
 M.core_backup = M.core_backup || {};
 /**
  * Adds confirmation dialogues to the cancel buttons on the page.
- * 
+ *
  * @param {object} config
  */
 M.core_backup.watch_cancel_buttons = function(config) {
@@ -27,4 +27,4 @@ M.core_backup.watch_cancel_buttons = function(config) {
     });
 }
 
-}, '@VERSION@', {'requires':['base','node','node-event-simulate','moodle-enrol-notification']});
\ No newline at end of file
+}, '@VERSION@', {'requires':['base','node','node-event-simulate','moodle-enrol-notification']});