|
@@ -3,7 +3,7 @@ discard block |
|
|
block discarded – undo |
|
3
|
3
|
class FrmAddonsController { |
|
4
|
4
|
|
|
5
|
5
|
public static function menu() { |
|
6
|
|
- add_submenu_page( 'formidable', 'Formidable | '. __( 'AddOns', 'formidable' ), __( 'AddOns', 'formidable' ), 'frm_view_forms', 'formidable-addons', 'FrmAddonsController::list_addons' ); |
|
|
6
|
+ add_submenu_page( 'formidable', 'Formidable | ' . __( 'AddOns', 'formidable' ), __( 'AddOns', 'formidable' ), 'frm_view_forms', 'formidable-addons', 'FrmAddonsController::list_addons' ); |
|
7
|
7
|
} |
|
8
|
8
|
|
|
9
|
9
|
public static function list_addons() { |
|
@@ -57,9 +57,9 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
} |
|
58
|
58
|
|
|
59
|
59
|
public static function get_licenses() { |
|
60
|
|
- $license = get_option('frmpro-credentials'); |
|
|
60
|
+ $license = get_option( 'frmpro-credentials' ); |
|
61
|
61
|
if ( $license && is_array( $license ) && isset( $license['license'] ) ) { |
|
62
|
|
- $url = 'http://formidablepro.com/frm-edd-api/licenses?l='. urlencode( base64_encode( $license['license'] ) ); |
|
|
62
|
+ $url = 'http://formidablepro.com/frm-edd-api/licenses?l=' . urlencode( base64_encode( $license['license'] ) ); |
|
63
|
63
|
$licenses = self::send_api_request( $url, array( 'name' => 'frm_api_licence', 'expires' => 60 * 60 * 5 ) ); |
|
64
|
64
|
echo json_encode( $licenses ); |
|
65
|
65
|
} |
Please login to merge, or discard this patch.