diff --git a/helper/actionscript.php b/helper/actionscript.php
index b860c3d..bb26f71 100644
--- a/helper/actionscript.php
+++ b/helper/actionscript.php
@@ -32,6 +32,13 @@ public function run($fields, $thanks, $argv) {
$classFragment = substr($scriptName, 0, strpos($scriptName, '.'));
$className = 'helper_plugin_bureaucracy_handler_' . $classFragment;
+ $deprecatedClassName = 'bureaucracy_handler_' . $classFragment;
+ if (!class_exists($className) && class_exists($deprecatedClassName)) {
+ msg("Please change this script's class-name to $className
.
+Your current scheme $deprecatedClassName
is deprecated and will stop working in the future.", 2);
+ $className = $deprecatedClassName;
+ }
+
/** @var dokuwiki\plugin\bureaucracy\interfaces\bureaucracy_handler_interface $handler */
$handler = new $className;