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:
eb1de65
)
update geshi setup check
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 May 2014 16:20:19 +0000
(18:20 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 15 May 2014 16:20:19 +0000
(18:20 +0200)
src/phorkie/SetupCheck.php
patch
|
blob
|
history
diff --git
a/src/phorkie/SetupCheck.php
b/src/phorkie/SetupCheck.php
index 3762457214a603a08c391e624ac0839776c83b15..62bbf19c54f3392650815849125f5b0d8d8f0d4f 100644
(file)
--- a/
src/phorkie/SetupCheck.php
+++ b/
src/phorkie/SetupCheck.php
@@
-46,11
+46,13
@@
class SetupCheck
}
}
}
}
- $geshi = stream_resolve_include_path(
- $GLOBALS['phorkie']['cfg']['geshi']
- );
- if ($geshi === false) {
- $this->fail('GeSHi not available');
+ if (!class_exists('GeSHi', true)) {
+ $geshi = stream_resolve_include_path(
+ $GLOBALS['phorkie']['cfg']['geshi']
+ );
+ if ($geshi === false) {
+ $this->fail('GeSHi not available');
+ }
}
$markdown = stream_resolve_include_path('markdown.php');
}
$markdown = stream_resolve_include_path('markdown.php');