Skip to content

Commit c3fd456

Browse files
authored
Merge pull request #208 from appcrew/hotfix/1.0.8_swagger
Swagger: Output swagger description
2 parents ebb8fec + aada5ca commit c3fd456

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,8 @@ public function executeCommand() {
26382638
if ($this->settings['origin']) {
26392639
$this->allowOrigin($this->settings['origin'],$this->settings['allow_origin']);
26402640
}
2641-
if (!$this->settings['request']) {
2641+
$currentScriptFilename = basename(__FILE__);
2642+
if (!$this->settings['request'] || $this->settings['request'] == $currentScriptFilename) {
26422643
$this->swagger($this->settings);
26432644
} else {
26442645
$parameters = $this->getParameters($this->settings);

0 commit comments

Comments
 (0)