diff options
author | Evan Prodromou <evan@status.net> | 2010-09-15 23:32:27 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-15 23:32:27 -0400 |
commit | b1802b87206fb165c2c3c4e06ba5c812e9701e02 (patch) | |
tree | 6039bbb05a532e9dd26882abe8610b9d012dd5d1 /scripts | |
parent | 670ad53215eaaa40a55a1977b373a62940c50a42 (diff) |
don't redeclare getUser() for backupuser.php
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/backupuser.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/backupuser.php b/scripts/backupuser.php index 56a54810c..49fc1cefd 100644 --- a/scripts/backupuser.php +++ b/scripts/backupuser.php @@ -34,30 +34,6 @@ END_OF_EXPORTACTIVITYSTREAM_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; -function getUser() -{ - $user = null; - - if (have_option('i', 'id')) { - $id = get_option_value('i', 'id'); - $user = User::staticGet('id', $id); - if (empty($user)) { - throw new Exception("Can't find user with id '$id'."); - } - } else if (have_option('n', 'nickname')) { - $nickname = get_option_value('n', 'nickname'); - $user = User::staticGet('nickname', $nickname); - if (empty($user)) { - throw new Exception("Can't find user with nickname '$nickname'"); - } - } else { - show_help(); - exit(1); - } - - return $user; -} - try { $user = getUser(); $actstr = new UserActivityStream($user); |