ported search.php & tools to lib2, and ...

- fixed logentry sorting for logs with identical date
- fixed ä etc. display in short descriptions on search results page
- try to select a matching language for the short descriptions
- added some translations
- hide download and map links if no search results (updates #235)
- nicer display of selectlocid page
- use site-dependent urls in GPX, LOC, TXT and KML
- unified XML encoding, now all done via two functions in lib2/util.inc.php (updates #121)
- some preventive XML encoding adjustments in GPX
- removed XML encoding in LOC CDATA section
- improved charset conversion for OVL and OV2 output
- some optimizations
- discarded lots of obsolete code
- disabled debug mode force_compile in OcSmarty class (performance)
This commit is contained in:
following
2013-07-12 15:11:23 +02:00
parent 463c645a72
commit f5565a918c
47 changed files with 2447 additions and 2661 deletions

View File

@@ -325,6 +325,12 @@
update_triggers();
}
function dbv_116() // optimize index for sorting logs
{
sql("ALTER TABLE `cache_logs` DROP INDEX `date`,
ADD INDEX `date` (`cache_id`,`date`,`date_created`)");
}
// When adding new mutations, take care that they behave well if run multiple
// times. This improves robustness of database versioning.