From 8e8797457d9a426329c8a63ec7248ade37663617 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 30 Jun 2013 16:52:53 +0200 Subject: [PATCH] Fixes #5 --- .gitignore | 2 ++ index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 79c93a2..452c5e3 100755 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ resources/rss.json resources/user.css autoblogs/* !autoblogs/autoblog.php +docs/* +!docs/docs.txt diff --git a/index.php b/index.php index 53d5e25..4cf4579 100755 --- a/index.php +++ b/index.php @@ -861,7 +861,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY foreach($subdirs as $unit) { if(!is_dir($unit) || file_exists( $unit . '/index.html' ) || file_exists( $unit . '/index.htm' ) || file_exists( $unit . '/index.php' ) ) { - $docs[] = ''. substr($unit, (strrpos($unit, '/')) + 1 ) .''; + $docs[] = ''. substr($unit, (strrpos($unit, '/')) + 1 ) .''; } } }