Fix class name.
authorJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 13:34:56 +0000 (14:34 +0100)
committerJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 22:32:07 +0000 (23:32 +0100)
gollem/lib/Gollem.php

index 1481071..0440eb8 100644 (file)
@@ -33,7 +33,7 @@ class Gollem
      */
     static public function setDir($dir)
     {
-        $dir = self::realPath($dir);
+        $dir = Horde_Util::realPath($dir);
 
         if (!self::verifyDir($dir)) {
             return PEAR::raiseError(sprintf(_("Access denied to folder \"%s\"."), $dir));
@@ -335,7 +335,7 @@ class Gollem
      */
     static public function createFolder($dir, $name)
     {
-        $totalpath = Gollem::realPath($dir . '/' . $name);
+        $totalpath = Horde_Util::realPath($dir . '/' . $name);
         if (!Gollem::verifyDir($totalpath)) {
             return PEAR::raiseError(sprintf(_("Access denied to folder \"%s\"."), $totalpath));
         }
@@ -600,7 +600,7 @@ class Gollem
     static public function verifyDir($dir)
     {
         $rootdir = Gollem::getRoot();
-        return (Horde_String::substr(Gollem::realPath($dir), 0, Horde_String::length($rootdir)) == $rootdir);
+        return (Horde_String::substr(Horde_Util::realPath($dir), 0, Horde_String::length($rootdir)) == $rootdir);
     }
 
 
@@ -876,7 +876,7 @@ class Gollem
      */
     static public function getDisplayPath($path)
     {
-        $path = Gollem::realPath($path);
+        $path = Horde_Util::realPath($path);
         $rootdir = Gollem::getRoot();
         if (($rootdir != '/') && (strpos($path, $rootdir) === 0)) {
             $path = substr($path, Horde_String::length($rootdir));