Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 372d008545 | |||
| e38a870e71 |
@@ -41,8 +41,8 @@ final class index extends core
|
||||
*/
|
||||
public function index(): null
|
||||
{
|
||||
if (str_contains($$this->request->headers['accept'], content::any->value)) {
|
||||
// Request for any response
|
||||
if (str_contains($$this->request->headers['accept'] ?? '', content::html->value)) {
|
||||
// Request for HTML response
|
||||
|
||||
// Render page
|
||||
$$page = $$this->view->render('index.html');
|
||||
|
||||
@@ -8,3 +8,8 @@ if [ -d author ]; then
|
||||
mv author ${REPO_OWNER}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user