Skip to content

Commit 4a93c4b

Browse files
Testcases updated
1 parent 8342a3b commit 4a93c4b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/config/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Contentstack\Config;
66

77
// Domain relevant constants
8-
define('HOST', 'dev6-new-api.contentstack.io');
8+
define('HOST', 'api.contentstack.io');
99
define('PROTOCOL', 'https');
1010
define('VERSION', '/v3');
1111
define('PORT', 443);

src/lib/models/content_type.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function Fetch($params = null) {
5757
* @returns Query
5858
* */
5959
public function Query() {
60-
\Contentstack\Utility\debug(("sndkcxcx cx n"));
6160
return new Query($this, $this->type);
6261
}
6362
}

src/lib/utility.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ function contentstackUrl($queryObject = '', $type = '') {
9797
break;
9898
default:
9999

100-
if($queryObject->_query && $queryObject->_query['include_global_field_schema'] || !$queryObject->contentType) {
101-
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->uid;
102-
} else {
103-
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
104-
}
100+
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
101+
// \Contentstack\Utility\debug($queryObject);
102+
// if($queryObject->_query && $queryObject->_query['include_global_field_schema']) {
103+
// $URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->uid;
104+
// } else {
105+
// $URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
106+
// }
105107
if(isset($queryObject->entryUid)) $URL.=$queryObject->entryUid;
106108
}
107109

0 commit comments

Comments
 (0)