Compare commits
2 Commits
88b93868e4
...
23a23f7f56
Author | SHA1 | Date | |
---|---|---|---|
23a23f7f56 | |||
23e8bcec59 |
2
api.php
2
api.php
@ -19,7 +19,7 @@
|
|||||||
// Cognito API access
|
// Cognito API access
|
||||||
if ( !class_exists('CognitoAPI') ) {
|
if ( !class_exists('CognitoAPI') ) {
|
||||||
class CognitoAPI {
|
class CognitoAPI {
|
||||||
public static $formsBase = 'https://cognitoforms.com/';
|
public static $formsBase = 'https://www.cognitoforms.com';
|
||||||
|
|
||||||
// Convert MS GUID to Short GUID
|
// Convert MS GUID to Short GUID
|
||||||
private static function guid_to_short_guid($guid) {
|
private static function guid_to_short_guid($guid) {
|
||||||
|
@ -8,6 +8,7 @@ export default function() {
|
|||||||
'templates/**/*',
|
'templates/**/*',
|
||||||
'tinymce/**/*',
|
'tinymce/**/*',
|
||||||
'*.php',
|
'*.php',
|
||||||
|
'cogicon.svg',
|
||||||
'LICENSE',
|
'LICENSE',
|
||||||
'readme.txt',
|
'readme.txt',
|
||||||
'screenshot*.png',
|
'screenshot*.png',
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
$url = CognitoAPI::$formsBase;
|
$url = CognitoAPI::$formsBase;
|
||||||
|
|
||||||
if ($_GET['page'] == 'CognitoCreateForm') {
|
if ($_GET['page'] == 'CognitoCreateForm') {
|
||||||
$url = $url . 'forms/new';
|
$url = $url . '/forms/new';
|
||||||
} elseif ($_GET['page'] == "CognitoTemplates") {
|
} elseif ($_GET['page'] == "CognitoTemplates") {
|
||||||
$url = $url . 'templates';
|
$url = $url . '/templates';
|
||||||
} else {
|
} else {
|
||||||
$url = $url . 'forms';
|
$url = $url . '/forms';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user