PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/Helpers/Config.php +2 -6 4.4.14.4.8 View file →
@@ -7,9 +7,9 @@
7 7 * Read data config from file
8 8 *
9 9 * @package LP\Helpers
10 10 * @since 4.1.6.4
11 - * @version 1.0.0
11 + * @version 1.0.1
12 12 */
13 13 class Config {
14 14 /*
15 15 * All of configurations of items
@@ -16,10 +16,8 @@
16 16 *
17 17 * @var array
18 18 */
19 19 protected static $instance;
20 - protected $file_name = '';
21 - protected $items = array();
22 20 /**
23 21 * @var array Array name files config.
24 22 */
25 23 protected $config_files = array();
@@ -34,10 +32,8 @@
34 32 * @param array $items
35 33 */
36 34 protected function __construct( array $items = array() ) {
37 35 $this->dir = LP_PLUGIN_PATH . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR;
38 -
39 - $this->items = $items;
40 36 }
41 37
42 38 /**
43 39 * Get the specified configuration value
@@ -89,9 +85,9 @@
89 85 return $data_config_by_key;
90 86 }
91 87 }
92 88
93 - public static function instance(): self {
89 + public static function instance() {
94 90 if ( is_null( self::$instance ) ) {
95 91 self::$instance = new self();
96 92 }
97 93