From b00eb8174c92111ace6eaf57698c8abaabd79dd5 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <gohr@cosmocode.de>
Date: Wed, 20 Apr 2016 16:32:09 +0200
Subject: [PATCH] fixed wrong namespace length

as pointed out in
https://github.com/splitbrain/dokuwiki/pull/1530/files/b89dfc20f1e13333ce49ce0d6a3a83cc9836094b#r60392099
---
 inc/load.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/load.php b/inc/load.php
index c562fc24f..39cb0fbb7 100644
--- a/inc/load.php
+++ b/inc/load.php
@@ -117,7 +117,7 @@ function load_autoload($name){
     // plugin namespace
     if(substr($name, 0, 16) == 'dokuwiki/plugin/') {
         $name = str_replace('/test/', '/_test/', $name); // no underscore in test namespace
-        $file = DOKU_PLUGIN . substr($name, 7) . '.php';
+        $file = DOKU_PLUGIN . substr($name, 16) . '.php';
         if(file_exists($file)) {
             require $file;
             return true;
-- 
GitLab