END_OF_USERROLE_HELP;
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
function interpretCommand($user, $body)
{
exit(1);
}
} else if (have_option('o', 'owner')) {
- $user = User::siteOwner();
- if (empty($user)) {
+ try {
+ $user = User::siteOwner();
+ } catch (ServerException $e) {
print "Site has no owner.\n";
exit(1);
}