You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: php/utils.php
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1575,18 +1575,22 @@ function get_site_name() {
1575
1575
* Function to set the site-name in the args when ee is running in a site folder and the site-name has not been passed in the args. If the site-name could not be found it will throw an error.
1576
1576
*
1577
1577
* @param array $args The passed arguments.
1578
-
* @param String $command The command passing the arguments to aut=detect site-name.
1578
+
* @param String $command The command passing the arguments to auto-detect site-name.
1579
+
* @param bool $arg_zero Site-name will be present in the first argument. Default true.
EE::error( $args[0] . " is not a valid site-name. Did you mean `ee $command$site_name`?" );
1593
+
}
1590
1594
array_unshift( $args, $site_name );
1591
1595
} else {
1592
1596
EE::error( "Could not find the site you wish to run $command command on.\nEither pass it as an argument: `ee $command <site-name>` \nor run `ee $command` from inside the site folder." );
0 commit comments