Commit 9fe8c017 authored by Penny Leach's avatar Penny Leach
Browse files

helper function to generate artefact type class names

parent 46bbb5e5
......@@ -673,6 +673,10 @@ function generate_class_name() {
return 'Plugin' . implode('', array_map('ucfirst', $args));
function generate_artefact_class_name($type) {
return 'ArtefactType' . ucfirst($type);
function redirect($location) {
if (headers_sent()) {
throw new Exception('Headers already sent when redirect() was called');
Markdown is supported
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