make autoloading geshi work
authorChristian Weiske <cweiske@cweiske.de>
Tue, 1 Jul 2014 18:50:42 +0000 (20:50 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 1 Jul 2014 18:50:42 +0000 (20:50 +0200)
src/phorkie/Renderer/Geshi.php
src/phorkie/SetupCheck.php

index 08c6c74..c422716 100644 (file)
@@ -17,10 +17,10 @@ class Renderer_Geshi
          * Yes, geshi needs to be in your include path
          * We use the mediawiki geshi extension package.
          */
-        if (!class_exists('\\GeSHi', true)) {
+        if (!class_exists('\\geshi', true)) {
             require_once $GLOBALS['phorkie']['cfg']['geshi'];
         }
-        $geshi = new \GeSHi($file->getContent(), $this->getType($file));
+        $geshi = new \geshi($file->getContent(), $this->getType($file));
         $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
         $geshi->set_header_type(GESHI_HEADER_DIV);
 
index 53e4fd0..177a0f7 100644 (file)
@@ -46,7 +46,7 @@ class SetupCheck
             }
         }
 
-        if (!class_exists('GeSHi', true)) {
+        if (!class_exists('geshi', true)) {
             $geshi = stream_resolve_include_path(
                 $GLOBALS['phorkie']['cfg']['geshi']
             );