summaryrefslogtreecommitdiff
path: root/rh-bin
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-30 01:23:56 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-30 01:23:56 (GMT)
commitbd44198689bdfe7b92a71cd8a5e6a4a2f9676911 (patch)
tree3e2b8ee93b1d8496bd3e10f6808efc5ecf3de947 /rh-bin
parentdd6aa62a59aa80e547785564bb04f0907fd8b0e7 (diff)
musicpools vs musicgrid
Diffstat (limited to 'rh-bin')
-rwxr-xr-xrh-bin/musicgrid.cgi6
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 {