MDL-13766, test api_key, and remove shared secret in flickr plug-in

This commit is contained in:
dongsheng 2008-08-14 06:48:58 +00:00
parent dfe23b6e66
commit 621dca51f8
2 changed files with 7 additions and 2 deletions

View file

@ -21,6 +21,9 @@ class repository_boxnet extends repository{
$reset = optional_param('reset', 0, PARAM_INT);
parent::__construct($repositoryid, $context, $options);
$this->api_key = $this->get_option('api_key');
if (empty($this->api_key)) {
throw new repository_exception('invalidapikey', 'repository_boxnet');
}
$sess_name = 'box_token'.$this->id;
// reset session
if(!empty($reset)) {