| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package ShiftController |
| 4 | 4 | * @author ShiftController |
| 5 | - * @version 2.1.1 | |
| 5 | + * @version 2.2.5 | |
| 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.1 | |
| 12 | +Version: 2.2.5 | |
| 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 = ''; |
| @@ -51,13 +52,14 @@ | ||
| 51 | 52 | |
| 52 | 53 | $GLOBALS['NTS_APPPATH'] = dirname(__FILE__) . '/application'; |
| 53 | 54 | |
| 54 | 55 | parent::__construct( |
| 55 | - strtolower(get_class()), | |
| 56 | + strtolower( get_class() ), | |
| 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 | } |