Commit 1af8345a authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Function to generate class names

parent 17ff9c54
......@@ -533,6 +533,11 @@ function call_static_method($class, $method) {
return call_user_func_array(array($class, $method), $args);
function generate_class_name() {
$args = func_get_args();
return 'Plugin' . implode('', array_map('ucfirst', $args));
function redirect($location) {
if (headers_sent()) {
throw new Exception('Headers already sent when redirect() was called');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment