mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 15:16:08 +00:00
fix the error when moving by cursor/arrow to the border of the map
This commit is contained in:
@@ -7,8 +7,13 @@ My changes notes:
|
||||
0. Change README with new contents
|
||||
1. Change install/templates/config.tpl to deal with deprecated warning from new PHP version.
|
||||
2. Fix install/data/sql.sql, to be executable in current MySQL version.
|
||||
3. Fix to db_MYSQL.php with safe_mysql_fetch_all, and safe_mysql_fetch_array wrappers, to avoid error: fix for Warning: mysql_fetch_all/array() expects parameter 1 to be resource, boolean given
|
||||
4. Fix to the db_MYSQLi.php in class object declaration(if anybody want to use db_MYSQLi.php again)
|
||||
3. Fix db_MYSQL.php
|
||||
with safe_mysql_fetch_all, and safe_mysql_fetch_array wrappers, to avoid error: fix for Warning: mysql_fetch_all/array() expects parameter 1 to be resource, boolean given
|
||||
4. Fix the db_MYSQLi.php in class object declaration(if anybody want to use db_MYSQLi.php again)
|
||||
5. Fix the unx.js file for error:
|
||||
VM5051:1 Uncaught SyntaxError: Unexpected token )
|
||||
jd.onreadystatechange @ unx.js?0ac36:170
|
||||
This error arises when moving to the border of the map.
|
||||
|
||||
Note for the original code:
|
||||
The last commit 4372c40 from Shadowss/TravianZ is on Jul 6 2016, with note:
|
||||
|
||||
@@ -166,7 +166,11 @@ function fd(url,gd,hd,id){
|
||||
var kd=jd.getResponseHeader('Content-Type');
|
||||
kd=kd.substr(0,kd.indexOf(';'));
|
||||
switch(kd){
|
||||
case'application/json':gd((jd.responseText==''?null:eval('('+jd.responseText+')')));break;
|
||||
case'application/json':
|
||||
if (jd.responseText.indexOf('[]') < 0) {
|
||||
gd((jd.responseText==''?null:eval('('+jd.responseText+')')));
|
||||
}
|
||||
break;
|
||||
case'text/plain':case'text/html':gd(jd.responseText);break;
|
||||
default:throw'Illegal content type';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user