mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-15 08:24:44 +02:00
core: Don't use server variables in CLI mode (#939)
This commit is contained in:
parent
6e9c188a72
commit
263e8872ea
2 changed files with 7 additions and 4 deletions
|
@ -77,7 +77,7 @@ function buildBridgeException($e, $bridge){
|
|||
$body = 'Error message: `'
|
||||
. $e->getMessage()
|
||||
. "`\nQuery string: `"
|
||||
. $_SERVER['QUERY_STRING']
|
||||
. (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '')
|
||||
. "`\nVersion: `"
|
||||
. Configuration::getVersion()
|
||||
. '`';
|
||||
|
@ -116,7 +116,8 @@ function buildTransformException($e, $bridge){
|
|||
$body = 'Error message: `'
|
||||
. $e->getMessage()
|
||||
. "`\nQuery string: `"
|
||||
. $_SERVER['QUERY_STRING'] . '`';
|
||||
. (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '')
|
||||
. '`';
|
||||
|
||||
$link = buildGitHubIssueQuery($title, $body, 'bug report', $bridge->getMaintainer());
|
||||
$header = buildHeader($e, $bridge);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue