git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e0f69ba
)
use autoloader on geshi before including it manually
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 14 May 2014 16:17:44 +0000
(18:17 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 14 May 2014 16:17:44 +0000
(18:17 +0200)
src/phorkie/Renderer/Geshi.php
patch
|
blob
|
history
diff --git
a/src/phorkie/Renderer/Geshi.php
b/src/phorkie/Renderer/Geshi.php
index 21d36c2d2214f04a198817b6269d73e9d05703a2..08c6c74d29e30c419e89ec84f8b317163d4f3ab4 100644
(file)
--- a/
src/phorkie/Renderer/Geshi.php
+++ b/
src/phorkie/Renderer/Geshi.php
@@
-17,7
+17,9
@@
class Renderer_Geshi
* Yes, geshi needs to be in your include path
* We use the mediawiki geshi extension package.
*/
- require_once $GLOBALS['phorkie']['cfg']['geshi'];
+ if (!class_exists('\\GeSHi', true)) {
+ require_once $GLOBALS['phorkie']['cfg']['geshi'];
+ }
$geshi = new \GeSHi($file->getContent(), $this->getType($file));
$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
$geshi->set_header_type(GESHI_HEADER_DIV);