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:
@ -148,6 +148,8 @@ function configure_php()
|
||||
ini_set('display_errors', true);
|
||||
ini_set('error_reporting', E_ALL);
|
||||
ini_set('mysql.trace_mode', true);
|
||||
// SQL_CALC_FOUND_ROWS will not work with trace_mode on!
|
||||
// Use the next two functions below as workaround.
|
||||
|
||||
// not for production use yet (has to be tested thoroughly)
|
||||
register_errorhandlers();
|
||||
@ -160,6 +162,19 @@ function configure_php()
|
||||
}
|
||||
}
|
||||
|
||||
function sql_enable_foundrows()
|
||||
{
|
||||
ini_set('mysql.trace_mode', false);
|
||||
}
|
||||
|
||||
function sql_foundrows_done()
|
||||
{
|
||||
global $opt;
|
||||
|
||||
if ($opt['php']['debug'] == PHP_DEBUG_ON)
|
||||
ini_set('mysql.trace_mode', true);
|
||||
}
|
||||
|
||||
function set_domain()
|
||||
{
|
||||
global $opt;
|
||||
|
Reference in New Issue
Block a user