| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package ShiftController |
| 4 | 4 | * @author ShiftController |
| 5 | - * @version 2.2.2 | |
| 5 | + * @version 2.1.2 | |
| 6 | 6 | */ |
| 7 | 7 | /* |
| 8 | 8 | Plugin Name: ShiftController |
| 9 | 9 | Plugin URI: http://www.shiftcontroller.com/ |
| @@ -8,12 +8,11 @@ | ||
| 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.2.2 | |
| 12 | +Version: 2.1.2 | |
| 13 | 13 | Author URI: http://www.shiftcontroller.com/ |
| 14 | 14 | */ |
| 15 | -error_reporting( E_ERROR & ~E_NOTICE ); | |
| 16 | 15 | |
| 17 | 16 | global $wp_version; |
| 18 | 17 | if (version_compare($wp_version, "3.3", "<")) |
| 19 | 18 | { |
| @@ -29,9 +28,9 @@ | ||
| 29 | 28 | if( defined('NTS_DEVELOPMENT') ) |
| 30 | 29 | $happ_path = NTS_DEVELOPMENT; |
| 31 | 30 | else |
| 32 | 31 | $happ_path = dirname(__FILE__) . '/happ'; |
| 33 | -include_once( $happ_path . '/hclib/hcWpBase.php' ); | |
| 32 | +include_once( $happ_path . '/application/libraries/hcWpBase.php' ); | |
| 34 | 33 | |
| 35 | 34 | class ShiftController extends hcWpBase2 |
| 36 | 35 | { |
| 37 | 36 | var $happ_path = ''; |
| @@ -57,9 +56,8 @@ | ||
| 57 | 56 | dirname(__FILE__), |
| 58 | 57 | array(), |
| 59 | 58 | TRUE |
| 60 | 59 | ); |
| 61 | - $this->query_prefix = '?/'; | |
| 62 | 60 | |
| 63 | 61 | require( $this->happ_path . '/assets/files.php' ); |
| 64 | 62 | reset( $css_files ); |
| 65 | 63 | foreach( $css_files as $f ) |
| @@ -113,9 +111,8 @@ | ||
| 113 | 111 | if( ! is_admin() ) |
| 114 | 112 | { |
| 115 | 113 | if( parent::front_init() ) |
| 116 | 114 | { |
| 117 | - $GLOBALS['NTS_CONFIG'][$this->app]['FORCE_USER_LEVEL'] = 0; | |
| 118 | 115 | // action |
| 119 | 116 | require( $this->happ_path . '/application/index_action.php' ); |
| 120 | 117 | $GLOBALS['NTS_CONFIG'][$this->app]['ACTION_STARTED'] = 1; |
| 121 | 118 | } |