summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-11-23 20:35:39 +0000
committerwjames5 <will@tekimaki.com>2009-11-23 20:35:39 +0000
commitff37f8342566e65c8026f3c800f620ca6c5c6e8f (patch)
treef42233356603b9608b5e41272127a02fadfdf5f8
parente2a98da57304b5779a96cc0b6dd30a7f496ed8fe (diff)
downloadthemes-ff37f8342566e65c8026f3c800f620ca6c5c6e8f.tar.gz
themes-ff37f8342566e65c8026f3c800f620ca6c5c6e8f.tar.bz2
themes-ff37f8342566e65c8026f3c800f620ca6c5c6e8f.zip
make sure shell_exec is available before using it
-rw-r--r--BitThemes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/BitThemes.php b/BitThemes.php
index f9074dc..69cbe32 100644
--- a/BitThemes.php
+++ b/BitThemes.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_themes/BitThemes.php,v 1.102 2009/11/12 05:09:05 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_themes/BitThemes.php,v 1.103 2009/11/23 20:35:39 wjames5 Exp $
* @package themes
*/
@@ -1356,7 +1356,7 @@ class BitThemes extends BitBase {
global $gBitSystem;
$ret = FALSE;
if( !empty( $pJavascriptFile )) {
- if( $pPack && $gBitSystem->isFeatureActive( 'themes_packed_js_css' ) && shell_exec( 'which java' ) ) {
+ if( $pPack && $gBitSystem->isFeatureActive( 'themes_packed_js_css' ) && function_exists( 'shell_exec' ) && shell_exec( 'which java' ) ) {
if( is_file( $pJavascriptFile )) {
// get a name for the cache file we're going to store
$cachefile = md5( $pJavascriptFile ).'.js';