| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @package LearnPress/Admin/Classes/Settings |
| 8 | 8 | * @version 1.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +use LearnPress\Helpers\Config; | |
| 12 | + | |
| 11 | 13 | defined( 'ABSPATH' ) || exit; |
| 12 | 14 | |
| 13 | 15 | if ( class_exists( 'LP_Settings_Profile', false ) ) { |
| 14 | 16 | return new LP_Settings_Profile(); |
| @@ -32,9 +34,9 @@ | ||
| 32 | 34 | * |
| 33 | 35 | * @return array |
| 34 | 36 | */ |
| 35 | 37 | public function get_settings( $section = null, $tab = null ) { |
| 36 | - return require_once LP_PLUGIN_PATH . 'config/settings/profile.php'; | |
| 38 | + return Config::instance()->get( 'profile', 'settings' ); | |
| 37 | 39 | } |
| 38 | 40 | } |
| 39 | 41 | |
| 40 | 42 | return new LP_Settings_Profile(); |