mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +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:
@@ -9,7 +9,7 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
class Generator {
|
||||
class MyGenerator {
|
||||
|
||||
public function generateRandID(){
|
||||
return md5($this->generateRandStr(16));
|
||||
@@ -162,4 +162,4 @@ if (date('Ymd',time()) == date('Ymd',$time)) {
|
||||
}
|
||||
|
||||
};
|
||||
$generator = new Generator;
|
||||
$generator = new MyGenerator;
|
||||
|
||||
Reference in New Issue
Block a user