mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
'substr(...)' short-hand usage.
This commit is contained in:
parent
eba06c0e1a
commit
b9d00bdb9b
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ class template
|
|||
public function generate_block_varref($namespace, $varname): string
|
||||
{
|
||||
// Strip the trailing period.
|
||||
$namespace = substr($namespace, 0, strlen($namespace) - 1);
|
||||
$namespace = substr($namespace, 0, -0);
|
||||
|
||||
// Get a reference to the data block for this namespace.
|
||||
$varref = $this->generate_block_data_ref($namespace, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue