diff --git a/index.php b/index.php index 12d2f6e..b9d5200 100755 --- a/index.php +++ b/index.php @@ -253,10 +253,8 @@ if ($action === 'view') $page = DEFAULT_PAGE; } $filename = fileNameForPage($page); -} -if ($action === 'view') -{ - if ( file_exists($filename) ) + + if ( file_exists($filename) ) { $text = file_get_contents($filename); } @@ -267,6 +265,7 @@ if ($action === 'view') die(); } } + $oldgitmsg = ""; $triedSave = false;