PluginProbe
ShiftController Employee Shift Scheduling / 2.2.4
ShiftController Employee Shift Scheduling v2.2.4
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | shiftcontroller.php +6 -3 2.1.22.2.4 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * @package ShiftController
4 4 * @author ShiftController
5 - * @version 2.1.2
5 + * @version 2.2.4
6 6 */
7 7 /*
8 8 Plugin Name: ShiftController
9 9 Plugin URI: http://www.shiftcontroller.com/
@@ -8,11 +8,12 @@
8 8 Plugin Name: ShiftController
9 9 Plugin URI: http://www.shiftcontroller.com/
10 10 Description: Staff scheduling plugin.
11 11 Author: ShiftController
12 -Version: 2.1.2
12 +Version: 2.2.4
13 13 Author URI: http://www.shiftcontroller.com/
14 14 */
15 +error_reporting( E_ERROR & ~E_NOTICE );
15 16
16 17 global $wp_version;
17 18 if (version_compare($wp_version, "3.3", "<"))
18 19 {
@@ -28,9 +29,9 @@
28 29 if( defined('NTS_DEVELOPMENT') )
29 30 $happ_path = NTS_DEVELOPMENT;
30 31 else
31 32 $happ_path = dirname(__FILE__) . '/happ';
32 -include_once( $happ_path . '/application/libraries/hcWpBase.php' );
33 +include_once( $happ_path . '/hclib/hcWpBase.php' );
33 34
34 35 class ShiftController extends hcWpBase2
35 36 {
36 37 var $happ_path = '';
@@ -56,8 +57,9 @@
56 57 dirname(__FILE__),
57 58 array(),
58 59 TRUE
59 60 );
61 + $this->query_prefix = '?/';
60 62
61 63 require( $this->happ_path . '/assets/files.php' );
62 64 reset( $css_files );
63 65 foreach( $css_files as $f )
@@ -111,8 +113,9 @@
111 113 if( ! is_admin() )
112 114 {
113 115 if( parent::front_init() )
114 116 {
117 + $GLOBALS['NTS_CONFIG'][$this->app]['FORCE_USER_LEVEL'] = 0;
115 118 // action
116 119 require( $this->happ_path . '/application/index_action.php' );
117 120 $GLOBALS['NTS_CONFIG'][$this->app]['ACTION_STARTED'] = 1;
118 121 }