"MDL-13766, improve repository admin page"
authorDongsheng Cai <unoter@gmail.com>
Wed, 10 Mar 2010 03:24:14 +0000 (03:24 +0000)
committerDongsheng Cai <unoter@gmail.com>
Wed, 10 Mar 2010 03:24:14 +0000 (03:24 +0000)
admin/repository.php
admin/repositoryinstance.php
repository/alfresco/repository.class.php

index 74c8b2b..da5d19e 100644 (file)
@@ -24,7 +24,6 @@ if ($edit) {
     $pagename = 'repositorynew';
 }
 
-require_login(SITEID, false);
 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 admin_externalpage_setup($pagename);
 
index 157681b..f0d999c 100644 (file)
@@ -25,7 +25,6 @@ if ($edit){
 }
 
 admin_externalpage_setup($pagename);
-require_login(SITEID, false);
 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
 $sesskeyurl = "$CFG->wwwroot/$CFG->admin/repositoryinstance.php?sesskey=" . sesskey();
index 3df8d2f..3a2d22b 100755 (executable)
@@ -252,7 +252,7 @@ class repository_alfresco extends repository {
      *
      * @return bool
      */
-    public function instance_config_form(&$mform) {
+    public function instance_config_form($mform) {
         if (!class_exists('SoapClient')) {
             $mform->addElement('static', null, get_string('notice'), get_string('soapmustbeenabled', 'repository_alfresco'));
             return false;