1
0
Fork 0

[bugfix] Daemon: Do not un-initialize controller no_result_url

master
Mike Gerwitz 2018-08-15 15:49:35 -04:00
commit d4948e2197
1 changed files with 13 additions and 1 deletions

View File

@ -183,12 +183,24 @@ module.exports = AbstractClass( 'Daemon',
},
/**
* Get (and initialize) controller
*
* The controller will only be initialized with the session key SKEY and
* all-submit notification URL NO_RESULTS_URL if they are provided,
* respectively.
*
* @param {string=} skey session key
* @param {no_results_url=} no_results_url URL for all-submit notification
*
* @return {Object} controller
*/
'protected getProgramController': function( skey, no_results_url )
{
var controller = require( './controller' );
controller.rater = this._rater;
controller.no_results_url = no_results_url || "";
controller.no_results_url = no_results_url || controller.no_results_url;
if ( skey )
{