From 5c5fd20c8fa71aa52f39ea900a00141b4571e33e Mon Sep 17 00:00:00 2001 From: Stoyvo Date: Tue, 31 Mar 2015 02:51:21 -0400 Subject: [PATCH] fix/ajax-autoloader --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax.php b/ajax.php index 1a82578..fd1639e 100644 --- a/ajax.php +++ b/ajax.php @@ -17,7 +17,7 @@ $type = (!empty($_GET['type']) ? $_GET['type'] : $_POST['type']); $action = (!empty($_GET['action']) ? $_GET['action'] : $_POST['action']); -$type = ucwords(strtolower($type)); +$type = str_replace(' ', '', lcfirst(ucwords(str_replace('-', ' ', strtolower($type))))); $action = str_replace(' ', '', lcfirst(ucwords(str_replace('-', ' ', strtolower($action))))); // If we're not posting, it's a get function