From 862938cfc740cb5cf2c566edee752fb7fa82a423 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 9 Feb 2013 10:41:36 +0100 Subject: [PATCH] Fixed /whitelist reload crash --- .travis.yml | 5 ----- src/API/BanAPI.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 76534812..8b02103b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,6 @@ language: php php: - 5.4 - - 5.5 - -matrix: - allow_failures: - - php: 5.5 before_script: - sudo pecl install channel://pecl.php.net/pthreads-0.0.42 diff --git a/src/API/BanAPI.php b/src/API/BanAPI.php index 2fb16f0f..36712a64 100644 --- a/src/API/BanAPI.php +++ b/src/API/BanAPI.php @@ -138,7 +138,7 @@ class BanAPI{ $output .= "Player \"$user\" added to white-list\n"; break; case "reload": - $this->whitelist = $this->load(FILE_PATH."white-list.txt", CONFIG_LIST); + $this->whitelist = new Config(FILE_PATH."white-list.txt", CONFIG_LIST); break; case "list": $output .= "White-list: ".implode(", ", $this->whitelist->getAll(true))."\n";