okapi r590
This commit is contained in:
@ -778,7 +778,7 @@ class Okapi
|
||||
{
|
||||
public static $data_store;
|
||||
public static $server;
|
||||
public static $revision = 583; # This gets replaced in automatically deployed packages
|
||||
public static $revision = 590; # 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. */
|
||||
|
@ -170,9 +170,7 @@
|
||||
<ul>
|
||||
<li><b>uuid</b> - UUID of the image,</li>
|
||||
<li><b>url</b> - URL of the image,</li>
|
||||
<li><b>thumb_url</b> - URL of a small (thumb) version of the image
|
||||
<b>or null</b> when no thumb is available (e.g. there are no thumbs
|
||||
for spoiler images),</li>
|
||||
<li><b>thumb_url</b> - URL of a small (thumb) version of the image,</li>
|
||||
<li><b>caption</b> - plain-text string, caption of the image,</li>
|
||||
<li><b>unique_caption</b> - plain-text string, to be used as a filename
|
||||
for Garmin's crappy images implementation (currently, they get image
|
||||
|
@ -450,7 +450,7 @@ class WebService
|
||||
foreach ($results as &$result_ref)
|
||||
$result_ref['images'] = array();
|
||||
$rs = Db::query("
|
||||
select object_id, uuid, url, thumb_url, title, spoiler
|
||||
select object_id, uuid, url, title, spoiler
|
||||
from pictures
|
||||
where
|
||||
object_id in ('".implode("','", array_map('mysql_real_escape_string', array_keys($cacheid2wptcode)))."')
|
||||
@ -472,7 +472,7 @@ class WebService
|
||||
$results[$cache_code]['images'][] = array(
|
||||
'uuid' => $row['uuid'],
|
||||
'url' => $row['url'],
|
||||
'thumb_url' => $row['thumb_url'] ? $row['thumb_url'] : null,
|
||||
'thumb_url' => Settings::get('SITE_URL') . 'thumbs.php?uuid=' . $row['uuid'],
|
||||
'caption' => $row['title'],
|
||||
'unique_caption' => self::get_unique_caption($row['title']),
|
||||
'is_spoiler' => ($row['spoiler'] ? true : false),
|
||||
|
@ -650,4 +650,5 @@ class View
|
||||
private static function ver80() { Db::execute("alter table okapi_search_sets add column date_created datetime not null"); }
|
||||
private static function ver81() { Db::execute("alter table okapi_search_sets add column expires datetime not null"); }
|
||||
private static function ver82() { CronJobController::reset_job_schedule("FulldumpGeneratorJob"); }
|
||||
private static function ver83() { Db::execute("alter table okapi_stats_temp engine=InnoDB"); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user