fix more deprecations
This commit is contained in:
parent
3d28c44fde
commit
ed508182b5
2 changed files with 7 additions and 7 deletions
|
@ -153,7 +153,7 @@ ConnectionManager::setConfig(Configure::consume('Datasources'));
|
||||||
Email::setConfigTransport(Configure::consume('EmailTransport'));
|
Email::setConfigTransport(Configure::consume('EmailTransport'));
|
||||||
Email::setConfig(Configure::consume('Email'));
|
Email::setConfig(Configure::consume('Email'));
|
||||||
Log::setConfig(Configure::consume('Log'));
|
Log::setConfig(Configure::consume('Log'));
|
||||||
Security::salt(Configure::consume('Security.salt'));
|
Security::setSalt(Configure::consume('Security.salt'));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The default crypto extension in 3.0 is OpenSSL.
|
* The default crypto extension in 3.0 is OpenSSL.
|
||||||
|
|
|
@ -129,7 +129,7 @@ class MainController extends AppController {
|
||||||
// paginate claims
|
// paginate claims
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
$pageLimit = 96;
|
$pageLimit = 96;
|
||||||
$page = intval($this->request->query('page'));
|
$page = intval($this->request->getQuery('page'));
|
||||||
|
|
||||||
$conn = ConnectionManager::get('default');
|
$conn = ConnectionManager::get('default');
|
||||||
$stmt = $conn->execute('SELECT COUNT(Id) AS Total FROM Claims');
|
$stmt = $conn->execute('SELECT COUNT(Id) AS Total FROM Claims');
|
||||||
|
@ -330,7 +330,7 @@ class MainController extends AppController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function find() {
|
public function find() {
|
||||||
$criteria = $this->request->query('q');
|
$criteria = $this->request->getQuery('q');
|
||||||
|
|
||||||
$this->loadModel('Blocks');
|
$this->loadModel('Blocks');
|
||||||
$this->loadModel('Claims');
|
$this->loadModel('Claims');
|
||||||
|
@ -385,7 +385,7 @@ class MainController extends AppController {
|
||||||
// paginate blocks
|
// paginate blocks
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
$pageLimit = 50;
|
$pageLimit = 50;
|
||||||
$page = intval($this->request->query('page'));
|
$page = intval($this->request->getQuery('page'));
|
||||||
|
|
||||||
$conn = ConnectionManager::get('default');
|
$conn = ConnectionManager::get('default');
|
||||||
$stmt = $conn->execute('SELECT COUNT(Id) AS Total FROM Blocks');
|
$stmt = $conn->execute('SELECT COUNT(Id) AS Total FROM Blocks');
|
||||||
|
@ -453,7 +453,7 @@ class MainController extends AppController {
|
||||||
$this->loadModel('Outputs');
|
$this->loadModel('Outputs');
|
||||||
$this->loadModel('Claims');
|
$this->loadModel('Claims');
|
||||||
|
|
||||||
$sourceAddress = $this->request->query('address');
|
$sourceAddress = $this->request->getQuery('address');
|
||||||
|
|
||||||
$tx = $this->Transactions->find()->select(
|
$tx = $this->Transactions->find()->select(
|
||||||
['Id', 'BlockHash', 'InputCount', 'OutputCount', 'Hash', 'Value', 'TransactionTime', 'TransactionSize', 'Created', 'Version', 'LockTime', 'Raw'])->where(['Hash' => $hash])->first();
|
['Id', 'BlockHash', 'InputCount', 'OutputCount', 'Hash', 'Value', 'TransactionTime', 'TransactionSize', 'Created', 'Version', 'LockTime', 'Raw'])->where(['Hash' => $hash])->first();
|
||||||
|
@ -550,7 +550,7 @@ class MainController extends AppController {
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
$pageLimit = 50;
|
$pageLimit = 50;
|
||||||
$numTransactions = 0;
|
$numTransactions = 0;
|
||||||
$page = intval($this->request->query('page'));
|
$page = intval($this->request->getQuery('page'));
|
||||||
|
|
||||||
$canTag = false;
|
$canTag = false;
|
||||||
$totalRecvAmount = 0;
|
$totalRecvAmount = 0;
|
||||||
|
@ -583,7 +583,7 @@ class MainController extends AppController {
|
||||||
$stmt = $conn->execute('SELECT COUNT(TransactionId) AS Total FROM TransactionsAddresses WHERE AddressId = ?', [$addressId]);
|
$stmt = $conn->execute('SELECT COUNT(TransactionId) AS Total FROM TransactionsAddresses WHERE AddressId = ?', [$addressId]);
|
||||||
$count = $stmt->fetch(\PDO::FETCH_OBJ);
|
$count = $stmt->fetch(\PDO::FETCH_OBJ);
|
||||||
$numTransactions = $count->Total;
|
$numTransactions = $count->Total;
|
||||||
$all = $this->request->query('all');
|
$all = $this->request->getQuery('all');
|
||||||
if ($all === 'true') {
|
if ($all === 'true') {
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
$pageLimit = $numTransactions;
|
$pageLimit = $numTransactions;
|
||||||
|
|
Loading…
Reference in a new issue