}
$header = $c->getResponse();
if(empty($header['location'])) {
- throw new repository_exception('invalidpassword', 'repository');
+ throw new repository_exception('invalidpassword', 'repository_boxnet');
}
$location = $header['location'];
preg_match('#auth_token=(.*)$#i', $location, $matches);
$this->auth_token = $auth_token;
return $auth_token;
} else {
- throw new repository_exception('invalidtoken', 'repository');
+ throw new repository_exception('invalidtoken', 'repository_boxnet');
}
}
$string['username'] = 'Username for Box.net';
$string['password'] = 'Password';
$string['saved'] = 'Box.net data saved.';
+$string['invalidpassword'] = 'Invalid password';
+$stirng['invalidtoken'] = 'Invalid auth-token';
+$string['nullfilelist'] = 'There are no files in this repository';