diff --git a/module/VuFind/src/VuFind/Bootstrap.php b/module/VuFind/src/VuFind/Bootstrap.php index 1fa410d55adf844f1b9c7f33cb573785fd1079e3..71f0c0aa9987daa813ea654204571e437d207911 100644 --- a/module/VuFind/src/VuFind/Bootstrap.php +++ b/module/VuFind/src/VuFind/Bootstrap.php @@ -64,10 +64,13 @@ class Bootstrap */ public function bootstrap() { - $this->initAccount(); - $this->initContext(); - $this->initHeadTitle(); - $this->initTheme(); + // automatically call all methods starting with "init": + $methods = get_class_methods($this); + foreach ($methods as $method) { + if (substr($method, 0, 4) == 'init') { + $this->$method(); + } + } } /**