| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | * Plugin Name: ShiftController |
| 4 | 4 | * Plugin URI: https://www.shiftcontroller.com/ |
| 5 | 5 | * Description: Staff scheduling plugin |
| 6 | - * Version: 4.9.74 | |
| 6 | + * Version: 4.9.97 | |
| 7 | 7 | * Author: plainware.com |
| 8 | 8 | * Author URI: https://www.shiftcontroller.com/ |
| 9 | 9 | * Text Domain: shiftcontroller |
| 10 | 10 | * Domain Path: /languages/ |
| @@ -9,9 +9,11 @@ | ||
| 9 | 9 | * Text Domain: shiftcontroller |
| 10 | 10 | * Domain Path: /languages/ |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -define( 'SH4_VERSION', 4974 ); | |
| 13 | +if (!defined('SH4_VERSION')) { | |
| 14 | + define( 'SH4_VERSION', 4997 ); | |
| 15 | +} | |
| 14 | 16 | |
| 15 | 17 | if (! defined('ABSPATH')) exit; // Exit if accessed directly |
| 16 | 18 | |
| 17 | 19 | if ( version_compare( PHP_VERSION, '5.3', '<' ) ) { |
| @@ -28,8 +30,9 @@ | ||
| 28 | 30 | $conf = include( dirname(__FILE__) . '/config.php' ); |
| 29 | 31 | } |
| 30 | 32 | |
| 31 | 33 | $hc3path = defined('HC3_DEV_INSTALL') ? HC3_DEV_INSTALL : dirname(__FILE__) . '/hc3'; |
| 34 | +$hc3path = dirname(__FILE__) . '/hc3'; | |
| 32 | 35 | include_once( $hc3path . '/_wordpress/abstract/plugin.php' ); |
| 33 | 36 | |
| 34 | 37 | class ShiftController4 extends HC3_Abstract_Plugin |
| 35 | 38 | { |
| @@ -200,9 +203,9 @@ | ||
| 200 | 203 | // $processParams = array( 'type', 'groupby', 'start', 'end', 'time', 'pickup', 'conflict' ); |
| 201 | 204 | // if( $slug != 'myschedule' ){ |
| 202 | 205 | // $processParams = array_merge( $processParams, array('calendar', 'employee', 'hideui') ); |
| 203 | 206 | // } |
| 204 | - $processParams = array( 'type', 'groupby', 'start', 'end', 'time', 'pickup', 'conflict', 'hideui' ); | |
| 207 | + $processParams = array( 'type', 'groupby', 'start', 'end', 'time', 'pickup', 'conflict', 'hideui', 't1', 't2' ); | |
| 205 | 208 | if( $slug != 'myschedule' ){ |
| 206 | 209 | $processParams = array_merge( $processParams, array('calendar', 'employee') ); |
| 207 | 210 | } |
| 208 | 211 | $arrayFor = array( 'calendar', 'employee', 'hideui' ); |