Skip to content

Commit

Permalink
Merge pull request #149 from ankush-maherwal/joomla-4
Browse files Browse the repository at this point in the history
Joomla 4
  • Loading branch information
ankush-maherwal committed Feb 13, 2023
2 parents 41df3cc + 37245e0 commit 7e5af12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/admin/controllers/keys.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ApiControllerKeys extends AdminController
*
* @since 3.0
*/
public function getModel($name = 'key', $prefix = 'ApiModel')
public function getModel($name = 'key', $prefix = 'ApiModel', $config = array())
{
$model = parent::getModel($name, $prefix, array('ignore_request' => true));

Expand Down
8 changes: 7 additions & 1 deletion code/site/controllers/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@ private function resetDocumentType()
{
foreach (headers_list() as $header)
{
header_remove($header);
$headerParts = explode(":", $header);

if (is_array($headerParts) && isset($headerParts[0]))
{
$headerToRemove = trim($headerParts[0]);
header_remove($headerToRemove);
}
}
}
//JResponse::clearHeaders();
Expand Down

0 comments on commit 7e5af12

Please sign in to comment.