complete lang form including money format

This commit is contained in:
Manuel Raynaud
2014-05-06 10:53:16 +02:00
parent ca1cb6e4d1
commit 4cd2ea6316
9 changed files with 161 additions and 5 deletions

View File

@@ -122,4 +122,10 @@ class Lang extends BaseLang
$this->dispatchEvent(TheliaEvents::AFTER_DELETELANG, new LangEvent($this));
}
public function preSave(ConnectionInterface $con = null)
{
$this->setDatetimeFormat(sprintf("%s %s", $this->getDateFormat(), $this->getTimeFormat()));
return true;
}
}