mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
fix PHP 8.2 ${var} string interpolation deprecation
see also https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated
This commit is contained in:
parent
5b458a17c2
commit
01ea041f94
@ -215,7 +215,7 @@ EOT, PHP_EOL;
|
|||||||
$counters['total'] < 1000 ? 4 : 10
|
$counters['total'] < 1000 ? 4 : 10
|
||||||
);
|
);
|
||||||
|
|
||||||
echo "Total:\t\t\t${counters['total']}", PHP_EOL;
|
echo "Total:\t\t\t{$counters['total']}", PHP_EOL;
|
||||||
foreach ($ids as $pasteid) {
|
foreach ($ids as $pasteid) {
|
||||||
$paste = $this->_store->read($pasteid);
|
$paste = $this->_store->read($pasteid);
|
||||||
++$counters['progress'];
|
++$counters['progress'];
|
||||||
@ -264,15 +264,15 @@ EOT, PHP_EOL;
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo PHP_EOL, <<<EOT
|
echo PHP_EOL, <<<EOT
|
||||||
Expired:\t\t${counters['expired']}
|
Expired:\t\t{$counters['expired']}
|
||||||
Burn after reading:\t${counters['burn']}
|
Burn after reading:\t{$counters['burn']}
|
||||||
Discussions:\t\t${counters['discussion']}
|
Discussions:\t\t{$counters['discussion']}
|
||||||
Plain Text:\t\t${counters['plain']}
|
Plain Text:\t\t{$counters['plain']}
|
||||||
Source Code:\t\t${counters['syntax']}
|
Source Code:\t\t{$counters['syntax']}
|
||||||
Markdown:\t\t${counters['md']}
|
Markdown:\t\t{$counters['md']}
|
||||||
EOT, PHP_EOL;
|
EOT, PHP_EOL;
|
||||||
if ($counters['unknown'] > 0) {
|
if ($counters['unknown'] > 0) {
|
||||||
echo "Unknown format:\t\t${counters['unknown']}", PHP_EOL;
|
echo "Unknown format:\t\t{$counters['unknown']}", PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user