Fix class name detection.
authorJan Schneider <jan@horde.org>
Fri, 9 Jan 2009 14:26:05 +0000 (15:26 +0100)
committerJan Schneider <jan@horde.org>
Fri, 9 Jan 2009 14:26:05 +0000 (15:26 +0100)
framework/Vcs/lib/Horde/Vcs.php

index a929ba1..c4287b3 100644 (file)
@@ -107,7 +107,7 @@ class Horde_Vcs
      */
     public function __construct()
     {
-        $pos = strpos(get_class($this), '_');
+        $pos = strrpos(get_class($this), '_');
         $this->_driver = substr(get_class($this), $pos + 1);
     }