d705f548c7bb7979d59bdcc3a7968d83900170e8
Author: José Lorenzo RodrÃguez
Date: 2007-10-21 02:18:24 +0000
diff --git a/.htaccess b/.htaccess
index 00d12ab..286e239 100755
--- a/.htaccess
+++ b/.htaccess
@@ -2,4 +2,4 @@
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
- </IfModule>
\ No newline at end of file
+</IfModule>
diff --git a/webroot/.htaccess b/webroot/.htaccess
index 8ca27c0..d4f3427 100755
--- a/webroot/.htaccess
+++ b/webroot/.htaccess
@@ -1,6 +1,6 @@
<IfModule mod_rewrite.c>
- RewriteEngine On
+ RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
-</IfModule>
\ No newline at end of file
+</IfModule>
diff --git a/webroot/js/plugins/scorm/api.js b/webroot/js/plugins/scorm/api.js
index 0610f2c..e1550cb 100644
--- a/webroot/js/plugins/scorm/api.js
+++ b/webroot/js/plugins/scorm/api.js
@@ -201,7 +201,17 @@ Scorm_2004 = function (){
*/
function SetValue(element, value){
- return '';
+ errorCode = "0";
+ diagnostic = "";
+
+ if ((Initialized) && (!Terminated)) {
+ if (element=="") {
+ errorCode = "351";
+ return "";
+ }
+
+ }
+ return "";
}
/* Description: The method requests forwarding to the persistent data store any data from
@@ -222,7 +232,7 @@ Scorm_2004 = function (){
abnormally or otherwise terminates prematurely prior to a call to Terminate("").
*/
function Commit(empty){
- errorCode = "0";
+ errorCode = "0";
if (param == "") {
if ((Initialized) && (!Terminated)) {
result = StoreData(cmi,false);
@@ -253,7 +263,7 @@ Scorm_2004 = function (){
error encountered.
*/
function GetLastError(){
- return '0';
+ return this.errorCode;
}
/*Description: The GetErrorString() function can be used to retrieve a textual
@@ -276,7 +286,7 @@ Scorm_2004 = function (){
*/
function GetErrorString(error_code){
- return '';
+ return this.GetErrorString(code);
}
/*Description: The GetDiagnostic() function exists for LMS specific use. It allows the
@@ -284,7 +294,7 @@ Scorm_2004 = function (){
no effect on the current error state; it simply returns the requested information.
*/
function GetDiagnostic(wtf){
- return '';
+ return '';
}
function GetErrorString (param) {
