Merge branch release/21.7.7 of zentao/zentaopms (#12154)
This commit is contained in:
+4
-2
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
/* Set the error reporting. */
|
||||
error_reporting(0);
|
||||
define('RUN_MODE', 'api');
|
||||
|
||||
/* Start output buffer. */
|
||||
ob_start();
|
||||
|
||||
@@ -37,6 +37,8 @@ $common = $app->loadCommon();
|
||||
$config->requestType = 'GET';
|
||||
$config->default->view = 'json';
|
||||
|
||||
/* Only has the api version then use apisession. Fix for passwordless login. */
|
||||
if($app->apiVersion) define('RUN_MODE', 'api');
|
||||
try
|
||||
{
|
||||
$app->parseRequest();
|
||||
@@ -59,4 +61,4 @@ catch (EndResponseException $endResponseException)
|
||||
}
|
||||
|
||||
/* Flush the buffer. */
|
||||
echo $app->formatData(helper::removeUTF8Bom(ob_get_clean()));
|
||||
echo $app->formatData(helper::removeUTF8Bom(ob_get_clean()));
|
||||
|
||||
Reference in New Issue
Block a user