sebgiroux / Cassandra-Cluster-Admin

Manage your Cassandra cluster in your Web browser!
http://www.wajam.com
MIT License
205 stars 66 forks source link

Bug fix for using mulitple clusters settings. #24

Closed msykiino closed 11 years ago

msykiino commented 11 years ago

Briefing

Issue

When you set multiple clusters in your include/conf.inc.php, it causes a php fatal error as shown below:

PHP Fatal error: Class 'SystemManager' not found in /PATH/TO/YOUR/APP/Cassandra-Cluster-Admin/helper/ClusterHelper.php on line 41

Workaround

I added the following lines in helper/ClusterHelper.php, to make this helper able to load SystemMager class.

require('include/autoload.php');

use phpcassa\SystemManager;

Comments

I don't think this is the best way to solve the problem, but at lease it worked and I needed to make it work AQAP so I wrote this simple dirty patch.

Regards.

sebgiroux commented 11 years ago

thanks