3 Commits

2 changed files with 7 additions and 2 deletions

View File

@@ -41,8 +41,8 @@ final class index extends core
*/ */
public function index(): null public function index(): null
{ {
if (str_contains($$this->request->headers['accept'], content::any->value)) { if (str_contains($$this->request->headers['accept'] ?? '', content::html->value)) {
// Request for any response // Request for HTML response
// Render page // Render page
$$page = $$this->view->render('index.html'); $$page = $$this->view->render('index.html');

View File

@@ -8,3 +8,8 @@ if [ -d author ]; then
mv author ${REPO_OWNER} mv author ${REPO_OWNER}
fi fi
if [ -e ${REPO_OWNER}/${REPO_NAME}/system/settings/*.sample ]; then
for i in ${REPO_OWNER}/${REPO_NAME}/system/settings/*.sample; do
cp "$$i" "$${i/.sample/}";
done
fi