fix: small naming fix to make writing directory README data easier

This commit is contained in:
David Bailey 2024-01-04 16:07:29 +01:00
parent 98e062611e
commit 83b849fda8
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
title: Oh, the pain
---
# AAA

View file

@ -99,8 +99,8 @@ class PostHandler extends MySQLAdapter {
if(isset($post_metadata['settings'])) {
$readme_metadata['settings'] = $post_metadata['settings'];
}
if(isset($post_metadata['directory_data'])) {
$readme_metadata = $post_metadata['directory_data'];
if(isset($post_metadata['directory'])) {
$readme_metadata = $post_metadata['directory'];
}
$this->update_or_create_post(dirname($post_path),