Changeset 18


Ignore:
Timestamp:
Nov 14, 2005 4:44:48 AM (19 years ago)
Author:
scdev
Message:

module_maker _config.inc.php now tests for no arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/_config.inc.php

    r17 r18  
    66$common_base = realpath($_SERVER['argv'][1]);
    77
    8 if ('' != $common_base && is_dir($common_base)) {
     8
     9if (2 == $_SERVER['argc'] && '' != $common_base && is_dir($common_base)) {
    910    // First arg is path to current site. Realpath removes trailing /s
    1011    define('COMMON_BASE', $common_base);
    1112} else {
    12     die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n");
     13    die("Error: Single argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n");
    1314}
    1415
Note: See TracChangeset for help on using the changeset viewer.