MDL-22985, repository plugins use new callback url.
authorDongsheng Cai <unoter@gmail.com>
Mon, 12 Jul 2010 04:53:31 +0000 (04:53 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 12 Jul 2010 04:53:31 +0000 (04:53 +0000)
repository/dropbox/lib.php
repository/googledocs/lib.php
repository/picasa/lib.php

index 0073df5..480150b 100644 (file)
@@ -62,7 +62,7 @@ class repository_dropbox extends repository {
             $this->logged = true;
         }
 
             $this->logged = true;
         }
 
-        $this->callback = new moodle_url($CFG->wwwroot.'/repository/repository_ajax.php', array(
+        $this->callback = new moodle_url($CFG->wwwroot.'/repository/repository_callback.php', array(
             'callback'=>'yes',
             'repo_id'=>$repositoryid
             ));
             'callback'=>'yes',
             'repo_id'=>$repositoryid
             ));
index 1a58b56..3d7487a 100644 (file)
@@ -68,7 +68,7 @@ class repository_googledocs extends repository {
             $ret = array();
             $popup_btn = new stdclass;
             $popup_btn->type = 'popup';
             $ret = array();
             $popup_btn = new stdclass;
             $popup_btn->type = 'popup';
-            $returnurl = $CFG->wwwroot.'/repository/repository_ajax.php?callback=yes&repo_id='.$this->id;
+            $returnurl = $CFG->wwwroot.'/repository/repository_callback.php?callback=yes&repo_id='.$this->id;
             $popup_btn->url = google_authsub::login_url($returnurl, google_docs::REALM);
             $ret['login'] = array($popup_btn);
             return $ret;
             $popup_btn->url = google_authsub::login_url($returnurl, google_docs::REALM);
             $ret['login'] = array($popup_btn);
             return $ret;
@@ -108,7 +108,7 @@ class repository_googledocs extends repository {
         return parent::logout();
     }
 
         return parent::logout();
     }
 
-    public function get_name(){
+    public function get_name() {
         return get_string('pluginname', 'repository_googledocs');
     }
 
         return get_string('pluginname', 'repository_googledocs');
     }
 
index bc9128a..4cdf468 100644 (file)
@@ -65,7 +65,7 @@ class repository_picasa extends repository {
 
     public function print_login(){
         global $CFG;
 
     public function print_login(){
         global $CFG;
-        $returnurl = $CFG->wwwroot.'/repository/repository_ajax.php?callback=yes&repo_id='.$this->id;
+        $returnurl = $CFG->wwwroot.'/repository/repository_callback.php?callback=yes&repo_id='.$this->id;
         $authurl = google_authsub::login_url($returnurl, google_picasa::REALM);
         if($this->options['ajax']){
             $ret = array();
         $authurl = google_authsub::login_url($returnurl, google_picasa::REALM);
         if($this->options['ajax']){
             $ret = array();