Fix class naming calls
This commit is contained in:
@@ -23,7 +23,7 @@ class Controller_Affiliate_Export extends Controller_TemplateDefault_Affiliate {
|
||||
if (empty($_POST['plugin']))
|
||||
$this->request->redirect('affiliate/export/index');
|
||||
|
||||
$sc = sprintf('Export_%s',ucfirst($_POST['plugin']));
|
||||
$sc = Kohana::classname('Export_'.$_POST['plugin']);
|
||||
if (! class_exists($sc))
|
||||
throw new Kohana_Exception('Export Class doesnt exist for :plugin',array(':plugin'=>$_POST['plugin']));
|
||||
else
|
||||
|
Reference in New Issue
Block a user