Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / scripts / drupal.sh
index de8e864b62f1509b083667f3d9ccc2eead456cea..d0b9f3d16b1f81626ed2df9bbc233ab2129f96a1 100755 (executable)
@@ -2,6 +2,7 @@
 <?php
 
 /**
+ * @file
  * Drupal shell execution script
  *
  * Check for your PHP interpreter - on Windows you'll probably have to
@@ -11,6 +12,7 @@
  * @param path  Drupal's absolute root directory in local file system (optional).
  * @param URI   A URI to execute, including HTTP protocol prefix.
  */
+
 $script = basename(array_shift($_SERVER['argv']));
 
 if (in_array('--help', $_SERVER['argv']) || empty($_SERVER['argv'])) {
@@ -56,8 +58,8 @@ EOF;
   exit;
 }
 
-// define default settings
 $cmd = 'index.php';
+// define default settings
 $_SERVER['HTTP_HOST']       = 'default';
 $_SERVER['PHP_SELF']        = '/index.php';
 $_SERVER['REMOTE_ADDR']     = '127.0.0.1';
@@ -69,10 +71,10 @@ $_SERVER['HTTP_USER_AGENT'] = 'console';
 
 // toggle verbose mode
 if (in_array('--verbose', $_SERVER['argv'])) {
-  $_verbose_mode = true;
+  $_verbose_mode = TRUE;
 }
 else {
-  $_verbose_mode = false;
+  $_verbose_mode = FALSE;
 }
 
 // parse invocation arguments