]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing syntax error - sorry for that
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 12:42:58 +0000 (15:42 +0300)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 12:42:58 +0000 (15:42 +0300)
lib/base.php

index 20f5fca20419ec07760721b513a3a6b1da99668a..b1117eda1113f004e372bd0a8ae4a32344d67ec3 100644 (file)
@@ -78,19 +78,19 @@ class OC{
                        require_once $path;
                }
                elseif(strpos($className, 'OC_')===0) {
-                       $path = strtolower(str_replace('_', '/', substr($className,3)) . '.php');
+                       $path = strtolower(str_replace('_', '/', substr($className, 3)) . '.php');
                }
                elseif(strpos($className, 'OCP\\')===0) {
-                       $path = 'public/'.strtolower(str_replace('\\',' /',s ubstr($className,3)) . '.php');
+                       $path = 'public/'.strtolower(str_replace('\\',' /', substr($className, 3)) . '.php');
                }
                elseif(strpos($className, 'OCA\\')===0) {
-                       $path = 'apps/'.strtolower(str_replace('\\', '/', substr($className,3)) . '.php');
+                       $path = 'apps/'.strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
                }
                elseif(strpos($className, 'Sabre_')===0) {
                        $path =  str_replace('_', '/', $className) . '.php';
                }
                elseif(strpos($className,'Test_')===0) {
-                       $path =  'tests/lib/'.strtolower(str_replace('_', '/', substr($className,)) . '.php');
+                       $path =  'tests/lib/'.strtolower(str_replace('_', '/', substr($className, 5)) . '.php');
                }else{
                        return false;
                }