mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor fixes (#165)
This commit is contained in:
parent
c8319be70f
commit
843641c22a
@ -28,7 +28,7 @@
|
|||||||
- Use constants instead of string literals [\#151](https://github.com/torrentpier/torrentpier-lts/pull/151), [\#160](https://github.com/torrentpier/torrentpier-lts/pull/160) ([belomaxorka](https://github.com/belomaxorka))
|
- Use constants instead of string literals [\#151](https://github.com/torrentpier/torrentpier-lts/pull/151), [\#160](https://github.com/torrentpier/torrentpier-lts/pull/160) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Sync language (html dir) with latest sources [\#152](https://github.com/torrentpier/torrentpier-lts/pull/152) ([belomaxorka](https://github.com/belomaxorka))
|
- Sync language (html dir) with latest sources [\#152](https://github.com/torrentpier/torrentpier-lts/pull/152) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Updated UK lang icons [\#155](https://github.com/torrentpier/torrentpier-lts/pull/155) ([belomaxorka](https://github.com/belomaxorka))
|
- Updated UK lang icons [\#155](https://github.com/torrentpier/torrentpier-lts/pull/155) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142), [\#144](https://github.com/torrentpier/torrentpier-lts/pull/144), [\#145](https://github.com/torrentpier/torrentpier-lts/pull/145), [\#148](https://github.com/torrentpier/torrentpier-lts/pull/148), [\#153](https://github.com/torrentpier/torrentpier-lts/pull/153), [\#154](https://github.com/torrentpier/torrentpier-lts/pull/154), [\#156](https://github.com/torrentpier/torrentpier-lts/pull/156), [\#157](https://github.com/torrentpier/torrentpier-lts/pull/157), [\#158](https://github.com/torrentpier/torrentpier-lts/pull/158), [\#159](https://github.com/torrentpier/torrentpier-lts/pull/159), [\#162](https://github.com/torrentpier/torrentpier-lts/pull/162), [\#163](https://github.com/torrentpier/torrentpier-lts/pull/163), [\#164](https://github.com/torrentpier/torrentpier-lts/pull/164) ([belomaxorka](https://github.com/belomaxorka))
|
- Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142), [\#144](https://github.com/torrentpier/torrentpier-lts/pull/144), [\#145](https://github.com/torrentpier/torrentpier-lts/pull/145), [\#148](https://github.com/torrentpier/torrentpier-lts/pull/148), [\#153](https://github.com/torrentpier/torrentpier-lts/pull/153), [\#154](https://github.com/torrentpier/torrentpier-lts/pull/154), [\#156](https://github.com/torrentpier/torrentpier-lts/pull/156), [\#157](https://github.com/torrentpier/torrentpier-lts/pull/157), [\#158](https://github.com/torrentpier/torrentpier-lts/pull/158), [\#159](https://github.com/torrentpier/torrentpier-lts/pull/159), [\#162](https://github.com/torrentpier/torrentpier-lts/pull/162), [\#163](https://github.com/torrentpier/torrentpier-lts/pull/163), [\#164](https://github.com/torrentpier/torrentpier-lts/pull/164), [\#165](https://github.com/torrentpier/torrentpier-lts/pull/165) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
||||||
## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04)
|
## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04)
|
||||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main)
|
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.03...main)
|
||||||
|
6
library/includes/cache/memcache.php
vendored
6
library/includes/cache/memcache.php
vendored
@ -38,12 +38,14 @@ class cache_memcache extends cache_common
|
|||||||
|
|
||||||
if (!$this->connected && $this->cfg['con_required'])
|
if (!$this->connected && $this->cfg['con_required'])
|
||||||
{
|
{
|
||||||
|
$con_error = "Could not connect to {$this->engine} server";
|
||||||
|
|
||||||
if (DBG_LOG)
|
if (DBG_LOG)
|
||||||
{
|
{
|
||||||
dbg_log("Could not connect to {$this->engine} server", "{$this->engine}-CACHE-connect-FAIL_" . time());
|
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
|
||||||
}
|
}
|
||||||
|
|
||||||
die("Could not connect to {$this->engine} server");
|
die($con_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
|
6
library/includes/cache/redis.php
vendored
6
library/includes/cache/redis.php
vendored
@ -36,12 +36,14 @@ class cache_redis extends cache_common
|
|||||||
|
|
||||||
if (!$this->connected && $this->cfg['con_required'])
|
if (!$this->connected && $this->cfg['con_required'])
|
||||||
{
|
{
|
||||||
|
$con_error = "Could not connect to {$this->engine} server";
|
||||||
|
|
||||||
if (DBG_LOG)
|
if (DBG_LOG)
|
||||||
{
|
{
|
||||||
dbg_log("Could not connect to {$this->engine} server", "{$this->engine}-CACHE-connect-FAIL_" . time());
|
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
|
||||||
}
|
}
|
||||||
|
|
||||||
die("Could not connect to {$this->engine} server");
|
die($con_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
|
15
library/includes/cache/sqlite.php
vendored
15
library/includes/cache/sqlite.php
vendored
@ -154,12 +154,17 @@ class sqlite_common extends cache_common
|
|||||||
$this->connected = true;
|
$this->connected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DBG_LOG) dbg_log(' ', $this->cfg['log_name'] .'-connect'. ($this->connected ? '' : '-FAIL'));
|
if (!$this->connected && $this->cfg['con_required'])
|
||||||
|
{
|
||||||
|
$con_error = "Could not connect to {$this->engine}";
|
||||||
|
|
||||||
if (!$this->connected && $this->cfg['con_required'])
|
if (DBG_LOG)
|
||||||
{
|
{
|
||||||
trigger_error('SQLite not connected', E_USER_ERROR);
|
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
die($con_error);
|
||||||
|
}
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
$this->cur_query = null;
|
$this->cur_query = null;
|
||||||
|
@ -37,12 +37,14 @@ class datastore_memcache extends datastore_common
|
|||||||
|
|
||||||
if (!$this->connected && $this->cfg['con_required'])
|
if (!$this->connected && $this->cfg['con_required'])
|
||||||
{
|
{
|
||||||
|
$con_error = "Could not connect to {$this->engine} server";
|
||||||
|
|
||||||
if (DBG_LOG)
|
if (DBG_LOG)
|
||||||
{
|
{
|
||||||
dbg_log("Could not connect to {$this->engine} server", "{$this->engine}-CACHE-connect-FAIL_" . time());
|
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
|
||||||
}
|
}
|
||||||
|
|
||||||
die("Could not connect to {$this->engine} server");
|
die($con_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
|
@ -35,12 +35,14 @@ class datastore_redis extends datastore_common
|
|||||||
|
|
||||||
if (!$this->connected && $this->cfg['con_required'])
|
if (!$this->connected && $this->cfg['con_required'])
|
||||||
{
|
{
|
||||||
|
$con_error = "Could not connect to {$this->engine} server";
|
||||||
|
|
||||||
if (DBG_LOG)
|
if (DBG_LOG)
|
||||||
{
|
{
|
||||||
dbg_log("Could not connect to {$this->engine} server", "{$this->engine}-CACHE-connect-FAIL_" . time());
|
dbg_log($con_error, "{$this->engine}-CACHE-connect-FAIL_" . time());
|
||||||
}
|
}
|
||||||
|
|
||||||
die("Could not connect to {$this->engine} server");
|
die($con_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
|
Loading…
Reference in New Issue
Block a user