X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=admin_pages.php;h=829f3a51a8ba49205cb5681746e5876e8cdd0ee5;hb=c469d2530ad9684e56742d38f5817cb08ad98eef;hp=4f5c4c8237736671c46b40a7b28880faa6061ef2;hpb=113d68bfa94bbe30622de1b7eccbefa18d2632d9;p=wfpl-cms.git diff --git a/admin_pages.php b/admin_pages.php index 4f5c4c8..829f3a5 100644 --- a/admin_pages.php +++ b/admin_pages.php @@ -5,8 +5,8 @@ define('ADMIN_PAGES_DB_FIELDS', 'title,filename,navbar,nav_title,content,description,keywords'); -require_once('code/wfpl/format.php'); -require_once('code/wfpl/email.php'); +require_once('inc/wfpl/format.php'); +require_once('inc/wfpl/email.php'); function format_cms_filename($str) { $str = format_filename($str); @@ -80,7 +80,7 @@ function admin_pages_main_delete($id) { function admin_pages_get_images() { $images = db_get_assocs('cms_images', 'image,name,caption,sizes', 'order by name, caption, image'); - $id = 1; + $id = 0; foreach($images as &$image) { $image['id'] = '' . $id; $id += 1;