Skip to content

Commit

Permalink
Merge pull request #1144 from Zoldiru/feat/extra_headers
Browse files Browse the repository at this point in the history
Add new optional field extra_headers in wakka.config
  • Loading branch information
mrflos committed Apr 12, 2024
2 parents 1247a5d + a138caf commit 0edb518
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/YesWikiInit.php
Expand Up @@ -299,6 +299,12 @@ public function getConfig($wakkaConfig = array())
$wakkaConfig['wikini_version'] = $wakkaConfig['wakka_version'];
}

if (!empty($wakkaConfig['extra_headers'])) {
foreach($wakkaConfig['extra_headers'] as $header) {
header($header);
}
}

return $wakkaConfig;
}

Expand Down

0 comments on commit 0edb518

Please sign in to comment.