diff options
Diffstat (limited to 'plugins/data.code.php')
| -rw-r--r-- | plugins/data.code.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/data.code.php b/plugins/data.code.php index fb90682..595649c 100644 --- a/plugins/data.code.php +++ b/plugins/data.code.php @@ -53,7 +53,7 @@ function data_code_help() { .'<td>source</td>' .'<td>' . tra( "key-word") . '<br />' . tra("(optional)") . '</td>' .'<td>' . tra( "Defines the format of the Source Code Snippet. Possible values are:"); - if( file_exists( UTIL_PKG_INC.'geshi/geshi.php' ) ) { + if( file_exists( UTIL_PKG_INCLUDE_PATH.'geshi/geshi.php' ) ) { $help = $help . '<br /> <strong>ActionScript</strong> • <strong>Ada</strong> • @@ -191,16 +191,16 @@ function data_code( $pData, $pParams ) { // Pre-Clyde Changes // Trim any leading blank lines $code = preg_replace( '/^[\n\r]+/', "", $code ); // Trim any trailing blank lines - if( file_exists( UTIL_PKG_INC.'geshi/geshi.php' )) { + if( file_exists( UTIL_PKG_INCLUDE_PATH.'geshi/geshi.php' )) { $code = preg_replace('/[\n\r]+$/', "", $code ); } else { $code = preg_replace('/[\n\r]+$/', "\n", $code ); } - if( file_exists( UTIL_PKG_INC.'geshi/geshi.php' ) ) { + if( file_exists( UTIL_PKG_INCLUDE_PATH.'geshi/geshi.php' ) ) { // Include the GeSHi library - include_once( UTIL_PKG_INC.'geshi/geshi.php' ); - $geshi = new GeSHi($code, $source, UTIL_PKG_INC.'geshi/geshi' ); + include_once( UTIL_PKG_INCLUDE_PATH.'geshi/geshi.php' ); + $geshi = new GeSHi($code, $source, UTIL_PKG_INCLUDE_PATH.'geshi/geshi' ); if( $num ) { // Line Numbering has been requested $geshi->enable_line_numbers( GESHI_FANCY_LINE_NUMBERS ); if( is_numeric( $num )) { |
