File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"php" : " >=5.2.0" ,
15
- "michelf/php-markdown" : " 1.3"
15
+ "michelf/php-markdown" : " 1.3" ,
16
+ "easybook/geshi" : " *"
16
17
},
17
18
"require-dev" : {
18
19
"lastcraft/simpletest" : " 1.1.*"
Original file line number Diff line number Diff line change 24
24
// check we are running from the command line
25
25
if (!isset ($ argv [0 ])) {
26
26
die ('This program must be run from the command line using the CLI version of PHP ' );
27
-
27
+
28
28
// check we are using the correct version of PHP
29
29
} elseif (!defined ('T_COMMENT ' ) || !extension_loaded ('tokenizer ' ) || version_compare (phpversion (), '5 ' , '< ' )) {
30
30
error ('You need PHP version 5 or greater with the "tokenizer" extension to run this script, please upgrade ' );
35
35
set_include_path (get_include_path () . PATH_SEPARATOR . dirname (__FILE__ ));
36
36
require ('classes ' .DIRECTORY_SEPARATOR .'phpDoctor.php ' );
37
37
38
+ // include geshi from composer if it exists
39
+ $ phpg = 'vendor ' .DIRECTORY_SEPARATOR .'easybook ' .DIRECTORY_SEPARATOR .'geshi ' .DIRECTORY_SEPARATOR .'geshi.php ' ;
40
+ if (is_readable ($ phpg )) {
41
+ include ($ phpg );
42
+ }
43
+
38
44
// get name of config file to use
39
45
if (!isset ($ argv [1 ])) {
40
46
if (isset ($ _ENV ['PHPDoctor ' ])) {
You can’t perform that action at this time.
0 commit comments