Using current date as default creation date
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Oct 2012 10:38:28 +0000 (11:38 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Oct 2012 10:38:28 +0000 (11:38 +0100)
Closes #4

files/lib/acp/form/StyleAddForm.class.php

index 159bf7702fba07b9c7e92d000cedd53cb8bea020..e06834b151a819c7adc46d0c5d74f66fa145f8b1 100644 (file)
@@ -389,6 +389,10 @@ class StyleAddForm extends ACPForm {
                                $i--;
                        }
                }
+               
+               if (empty($_POST)) {
+                       $this->styleDate = date('Y-m-d', TIME_NOW);
+               }
        }
        
        /**