okapi r694
This commit is contained in:
parent
6841be3d26
commit
ce460979ce
@ -778,7 +778,7 @@ class Okapi
|
||||
{
|
||||
public static $data_store;
|
||||
public static $server;
|
||||
public static $revision = 686; # This gets replaced in automatically deployed packages
|
||||
public static $revision = 694; # This gets replaced in automatically deployed packages
|
||||
private static $okapi_vars = null;
|
||||
|
||||
/** Get a variable stored in okapi_vars. If variable not found, return $default. */
|
||||
|
@ -1012,6 +1012,8 @@ class WebService
|
||||
}
|
||||
else
|
||||
{
|
||||
# OC.de wants the tld in lowercase here
|
||||
$site_name = ucfirst(strtolower($site_name));
|
||||
if ($type == 'full')
|
||||
{
|
||||
$note = sprintf(
|
||||
|
@ -14,8 +14,10 @@
|
||||
<li><b>cache_code</b> - code of the cache which the log entry refers to,</li>
|
||||
<li>
|
||||
<p><b>date</b> - date and time (ISO 8601) when the log entry was submitted.</p>
|
||||
<p>Note, that some Opencaching servers don't store the exact times along
|
||||
with the log entries.</p>
|
||||
<p>Please note that log entries often contain dates only (with the times
|
||||
truncated to midnight, as in the local timezone). In such cases, you may
|
||||
want to avoid displaying the time. You may assume that if the <b>date</b>
|
||||
value contains the "00:00:00" string, then it is date-only.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><b>user</b> - a dictionary:</p>
|
||||
|
@ -100,7 +100,7 @@ class WebService
|
||||
throw new InvalidParam('recommend', "Unknown option: '$recommend'.");
|
||||
$recommend = ($recommend == 'true');
|
||||
if ($recommend && $logtype != 'Found it')
|
||||
throw new BadRequest(_("Recommending is allowed only for 'Found it' logtypes."));
|
||||
throw new BadRequest("Recommending is allowed only for 'Found it' logtypes.");
|
||||
|
||||
$needs_maintenance = $request->get_parameter('needs_maintenance');
|
||||
if (!$needs_maintenance) $needs_maintenance = 'false';
|
||||
|
@ -23,8 +23,10 @@
|
||||
<li><b>uuid</b> - ID of the log entry,</li>
|
||||
<li>
|
||||
<p><b>date</b> - date and time (ISO 8601) when the log entry was submitted.</p>
|
||||
<p>Note, that some Opencaching servers don't store the exact times along
|
||||
with the log entries.</p>
|
||||
<p>Please note that log entries often contain dates only (with the times
|
||||
truncated to midnight, as in the local timezone). In such cases, you may
|
||||
want to avoid displaying the time. You may assume that if the <b>date</b>
|
||||
value contains the "00:00:00" string, then it is date-only.</p>
|
||||
</li>
|
||||
<li><b>cache_code</b> - code of the geocache,</li>
|
||||
<li>
|
||||
|
@ -27,7 +27,8 @@ class View
|
||||
$user = Settings::get('DB_USERNAME');
|
||||
$password = Settings::get('DB_PASSWORD');
|
||||
$dbname = Settings::get('DB_NAME');
|
||||
$struct = shell_exec("mysqldump --no-data -u$user -p$password $dbname");
|
||||
$dbserver = Settings::get('DB_SERVER');
|
||||
$struct = shell_exec("mysqldump --no-data -h$dbserver -u$user -p$password $dbname");
|
||||
|
||||
# Remove the "AUTO_INCREMENT=..." values. They break the diffs.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user