MDL-26537 Portfolio: Flickr setup instruction contains correct callback URL
authorDavid Mudrak <david@moodle.com>
Mon, 21 Feb 2011 15:00:12 +0000 (16:00 +0100)
committerDavid Mudrak <david@moodle.com>
Mon, 21 Feb 2011 15:00:12 +0000 (16:00 +0100)
There was a bug due to the code copied from portfolio_boxnet plugin.

portfolio/flickr/lib.php

index 4c64fa7..fe63d9d 100755 (executable)
@@ -107,7 +107,7 @@ class portfolio_plugin_flickr extends portfolio_plugin_push_base {
         $a = new stdClass();
         $a->applyurl = 'http://www.flickr.com/services/api/keys/apply/';
         $a->keysurl = 'http://www.flickr.com/services/api/keys/';
-        $a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet';
+        $a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=flickr';
         $mform->addElement('static', 'setupinfo', get_string('setupinfo', 'portfolio_flickr'),
             get_string('setupinfodetails', 'portfolio_flickr', $a));
     }