]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15350, add language string for boxnet plug-in.
authordongsheng <dongsheng>
Mon, 28 Jul 2008 08:52:33 +0000 (08:52 +0000)
committerdongsheng <dongsheng>
Mon, 28 Jul 2008 08:52:33 +0000 (08:52 +0000)
repository/boxnet/boxlibphp5.php
repository/boxnet/lang/en_utf8/repository_boxnet.php

index 6d31c5f55d093c978c9cc21f54f388870538ae8d..49ea476570755d947db44c9b2026de54c977379a 100755 (executable)
@@ -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');
         }
     }
 
index 15833f0b1534212e95ec4a352bb2e6d840ff8194..013c198347932b6e846e46e6f4ecc69dfd472c03 100644 (file)
@@ -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';