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 08c6c74d29e30c419e89ec84f8b317163d4f3ab4..c4227161a91d72448891be6cd2714ee26139ccdf 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 53e4fd036d739552c84c4ce8e3fe5e317ed1268f..177a0f75d8c98ffd32b9b328de0807671a3ca134 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']
             );