mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +00:00
fix PHP Fatal error: Cannot redeclare class Generator on PHP 5.5
PHP 5.5 STL introdouced class Generator and PHP interpret thinks we want to redeclare it -> rename Generator class to something else
This commit is contained in:
@@ -70,14 +70,14 @@ if(isset($id))
|
||||
Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg==";
|
||||
$refreshicon = "<img src=\"".$refreshiconfrm."\">";
|
||||
|
||||
class Generator
|
||||
class MyGenerator
|
||||
{
|
||||
public function getMapCheck($wref)
|
||||
{
|
||||
return substr(md5($wref),5,2);
|
||||
}
|
||||
};
|
||||
$generator = new Generator;
|
||||
$generator = new MyGenerator;
|
||||
|
||||
if($village and $user)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user