Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 2 additions and 3 deletions
Showing only changes of commit e84b837dce - Show all commits

View File

@ -214,7 +214,7 @@ class Anime extends BaseController {
*/
public function update()
{
if ($this->request->getHeader('content-type')[0] === 'application/json')
if (stripos($this->request->getHeader('content-type')[0], 'application/json') !== FALSE)
{
$data = Json::decode((string)$this->request->getBody());
}

View File

@ -91,8 +91,7 @@ class Util {
*/
public function isViewPage()
{
$url = $this->container->get('request')
->getUri();
$url = $this->container->get('request')->getUri();
$pageSegments = explode("/", (string) $url);
$intersect = array_intersect($pageSegments, self::$formPages);