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:
Tomas Kasparek
2015-07-08 13:33:37 +02:00
parent faef7e7602
commit ec18bd788c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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)
{