@@ -67,6 +67,9 @@ |
||
| 67 | 67 | \add_action('admin_init',array($this,'register_scripts')); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $path |
|
| 72 | + */ |
|
| 70 | 73 | private function get_url( $path ) |
| 71 | 74 | { |
| 72 | 75 | $url = str_replace( ABSPATH, '', $path ); |
@@ -18,7 +18,9 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Prevent loading the library more than once |
| 20 | 20 | */ |
| 21 | -if( defined( 'AMARKAL_SETTINGS' ) ) return false; |
|
| 21 | +if( defined( 'AMARKAL_SETTINGS' ) ) { |
|
| 22 | + return false; |
|
| 23 | +} |
|
| 22 | 24 | define( 'AMARKAL_SETTINGS', true ); |
| 23 | 25 | |
| 24 | 26 | if(!function_exists('amarkal_add_settings_page')) |