From f5b57320592e70b3de33a2672e792c6c41479146 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Mon, 28 Jul 2008 08:52:33 +0000 Subject: [PATCH] MDL-15350, add language string for boxnet plug-in. --- repository/boxnet/boxlibphp5.php | 4 ++-- repository/boxnet/lang/en_utf8/repository_boxnet.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/repository/boxnet/boxlibphp5.php b/repository/boxnet/boxlibphp5.php index 6d31c5f55d..49ea476570 100755 --- a/repository/boxnet/boxlibphp5.php +++ b/repository/boxnet/boxlibphp5.php @@ -112,7 +112,7 @@ class boxclient { } $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); @@ -121,7 +121,7 @@ class boxclient { $this->auth_token = $auth_token; return $auth_token; } else { - throw new repository_exception('invalidtoken', 'repository'); + throw new repository_exception('invalidtoken', 'repository_boxnet'); } } diff --git a/repository/boxnet/lang/en_utf8/repository_boxnet.php b/repository/boxnet/lang/en_utf8/repository_boxnet.php index 15833f0b15..013c198347 100644 --- a/repository/boxnet/lang/en_utf8/repository_boxnet.php +++ b/repository/boxnet/lang/en_utf8/repository_boxnet.php @@ -5,3 +5,6 @@ $string['configplugin'] = 'Box.net configuration'; $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'; -- 2.39.5