Missed one case of sendtosab in utils.js. Change to proper sendtoqueue.Fixed instantiation of RottenTomato in FIlm.php.

This commit is contained in:
Darko
2015-06-11 15:13:38 +02:00
parent ea75881d47
commit 41116e52bb
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -1331,7 +1331,7 @@ class Film
$this->pdo->log->doEcho($this->pdo->log->header('Updating movie schedule using rotten tomatoes.'));
}
$rt = new \RottenTomato($this->pdo->getSetting('rottentomatokey'));
$rt = new RottenTomato($this->pdo->getSetting('rottentomatokey'));
if ($rt instanceof RottenTomato) {
@@ -1361,23 +1361,23 @@ class Film
switch ($operation) {
case 'boxoffice':
$data = $rt->getMoviesBoxOffice();
$update = \Film::SRC_BOXOFFICE;
$update = Film::SRC_BOXOFFICE;
break;
case 'theaters':
$data = $rt->getMoviesInTheaters();
$update = \Film::SRC_INTHEATRE;
$update = Film::SRC_INTHEATRE;
break;
case 'opening':
$data = $rt->getOpeningMovies();
$update = \Film::SRC_OPENING;
$update = Film::SRC_OPENING;
break;
case 'upcoming':
$data = $rt->getUpcomingMovies();
$update = \Film::SRC_UPCOMING;
$update = Film::SRC_UPCOMING;
break;
case 'dvd':
$data = $rt->getNewDvdReleases();
$update = \Film::SRC_DVD;
$update = Film::SRC_DVD;
break;
default:
$data = false;
+1 -1
View File
@@ -189,7 +189,7 @@ jQuery(function ($) {
var $sabIcon = $(row).parent().parent().children('td.icons').children('.icon_sab');
var guid = $(row).val();
if (guid && !$sabIcon.hasClass('icon_sab_clicked')) {
var nzburl = SERVERROOT + "sendtosab/" + guid;
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
$.post( nzburl, function(resp){
$sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue');
$.pnotify({