diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-06 13:48:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-06 13:48:10 +0000 |
commit | fee10f55e29ce88b0078eecc46a17de30b906739 (patch) | |
tree | d0f91f5936ad2f1d2c3cb1fbcb8be28133138386 /scripts | |
parent | a05ec189961557ea9333c89a00ab4d220d25abc6 (diff) | |
download | brdo-fee10f55e29ce88b0078eecc46a17de30b906739.tar.gz brdo-fee10f55e29ce88b0078eecc46a17de30b906739.tar.bz2 |
- Patch #511022 by gordon: some drupal.sh fixes for Drush.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/drupal.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/drupal.sh b/scripts/drupal.sh index 5bc254365..477fc2c4b 100755 --- a/scripts/drupal.sh +++ b/scripts/drupal.sh @@ -1,4 +1,4 @@ -#!/usr/bin/php +#!/usr/bin/env php <?php // $Id$ @@ -66,6 +66,7 @@ $_SERVER['SERVER_SOFTWARE'] = 'PHP CLI'; $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['QUERY_STRING'] = ''; $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; +$_SERVER['HTTP_USER_AGENT'] = 'console'; // toggle verbose mode if (in_array('--verbose', $_SERVER['argv'])) { |