Bug fix for using mulitple clusters settings. #24

Merged
merged 1 commit into from Dec 16, 2012

Projects

None yet

2 participants

@msykiino
Contributor

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
Owner

thanks

@sebgiroux sebgiroux merged commit 313851e into sebgiroux:master Dec 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment