Explorar o código

Merge pull request #576 from own3mall/master

Compatibility for Older PHP Versions
OwN-3m-All %!s(int64=4) %!d(string=hai) anos
pai
achega
e42f015c90
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      protocol/GameQ/GameQ.php

+ 6 - 5
protocol/GameQ/GameQ.php

@@ -41,11 +41,6 @@ use GameQ\Exception\Query as QueryException;
  */
 class GameQ
 {
-    /*
-     * Constants
-     */
-    const PROTOCOLS_DIRECTORY = __DIR__ . '/Protocols';
-
     /* Static Section */
 
     /**
@@ -124,6 +119,12 @@ class GameQ
      */
     public function __construct()
     {
+		
+		 /*
+		 * Constants
+		 */
+		define("PROTOCOLS_DIRECTORY", __DIR__ . '/Protocols');
+		
         // Check for missing utf8_encode function
         if (!function_exists('utf8_encode')) {
             throw new \Exception("PHP's utf8_encode() function is required - "