Made grinding_halt() exit with status 1 for POSIX compatibility; jscompress.php utility now accepts non-CDN websites
authorDan
Wed, 23 Jul 2008 11:02:29 -0500
changeset 662 fcab604da9a7
parent 661 5dd55a9240f8
child 663 d0f74bcd21eb
Made grinding_halt() exit with status 1 for POSIX compatibility; jscompress.php utility now accepts non-CDN websites
includes/clientside/jscompress.php
includes/functions.php
--- a/includes/clientside/jscompress.php	Tue Jul 22 17:08:05 2008 -0500
+++ b/includes/clientside/jscompress.php	Wed Jul 23 11:02:29 2008 -0500
@@ -65,13 +65,13 @@
   die_friendly('Not for web use', '<p>This script is designed to be run from a command-line environment.</p>');
 }
 
-if ( !getConfig('cdn_path') )
-{
-  die_friendly('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.');
-}
+// if ( !getConfig('cdn_path') )
+// {
+//   die_semicritical('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.');
+// }
 
 echo "\x1B[1mCreating zip file with compressed Javascript runtimes.\x1B[0m\n";
-echo "\x1B[0;32mWhen finished, upload the contents of enano-lib.zip to:\n\x1B[1;34m  " . getConfig('cdn_path') . "/includes/clientside/static/\x1B[0m\n";
+echo "\x1B[0;32mWhen finished, upload the contents of enano-lib.zip to:\n\x1B[1;34m  " . cdnPath . "/includes/clientside/static/\x1B[0m\n";
 
 echo "\x1B[0;33mChecking for zip support...";
 
--- a/includes/functions.php	Tue Jul 22 17:08:05 2008 -0500
+++ b/includes/functions.php	Wed Jul 23 11:02:29 2008 -0500
@@ -756,7 +756,7 @@
     // unbold
     echo "\x1B[0m";
     echo "$p\n";
-    exit;
+    exit(1);
   }
   $theme = ( defined('ENANO_CONFIG_FETCHED') ) ? getConfig('theme_default') : 'oxygen';
   $style = ( defined('ENANO_CONFIG_FETCHED') ) ? '__foo__' : 'bleu';