Fix RU date format

Fix some bugs with output date =)

I think other languages (UA, SI) need same changes. Otherwise format date and time will not work.
Fix date format in all languages
Get searchDirectory for searchBox via function

This way it's possible to use different searchDirectories for different
searchBoxes
Mysql 5.6 compatibility

fixes issue with eg. "incorrect integer value ''"
Merge pull request #273 from Sogl/patch-4

Fix RU date format
Merge branch '3.7' into 3.8