diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-30 01:23:56 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-30 01:23:56 (GMT) |
commit | bd44198689bdfe7b92a71cd8a5e6a4a2f9676911 (patch) | |
tree | 3e2b8ee93b1d8496bd3e10f6808efc5ecf3de947 /rh-bin | |
parent | dd6aa62a59aa80e547785564bb04f0907fd8b0e7 (diff) |
musicpools vs musicgrid
Diffstat (limited to 'rh-bin')
-rwxr-xr-x | rh-bin/musicgrid.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rh-bin/musicgrid.cgi b/rh-bin/musicgrid.cgi index 440f95b..908dd24 100755 --- a/rh-bin/musicgrid.cgi +++ b/rh-bin/musicgrid.cgi @@ -56,7 +56,7 @@ sub set_clock return 400, "mandatory field NAME is missing"; } - my ($result, $status, $error) = RHRD::rddb::set_musicpools_clock($ctx, $dow, $hour, $shortname); + my ($result, $status, $error) = RHRD::rddb::set_musicgrid_clock($ctx, $dow, $hour, $shortname); if(!defined $result) { return 500, $status . ": " . $error; } @@ -75,10 +75,10 @@ if(!defined $username) { (my $ctx, $status, $errorstring) = RHRD::rddb::init(); if(defined $ctx) { (my $authenticated, $status, $errorstring) = RHRD::rddb::check_token($ctx, $username, $token); - my $authorized = RHRD::rddb::is_musicpools_user($ctx, $username); + my $authorized = RHRD::rddb::is_musicgrid_user($ctx, $username); if($authenticated == 1 && $authorized == 1) { if($cmd eq "GET") { - @clocks = RHRD::rddb::get_musicpools_clocks($ctx); + @clocks = RHRD::rddb::get_musicgrid_clocks($ctx); if(!defined $clocks[0] && defined $clocks[1]) { ($responsecode, $errorstring) = (500, $clocks[1] . ": " . $clocks[2]); } else { |