// And continue with next entry
continue;
- } else {
+ } elseif (substr($cmd, 0 , 3) == 'ext') {
+ // Get the extension command
+ $extCmd = explode(',', $cmd);
+ $extCmd = $extCmd[1];
+
// Construct call-back function name
- $functionName = 'getExtension' . ucfirst(strtolower($cmd));
+ $functionName = 'getExtension' . ucfirst(strtolower($extCmd));
// Construct call of the function
$replacer = "\" . call_user_func_array('" . $functionName . "', array('" . $matches[3][$key] . "', true)) . \"";
+ } else {
+ // Unknown command detected
+ debug_report_bug('Unknown command ' . $cmd . ' detected.');
}
// Replace it and insert parameter for GET request