'substr(...)' short-hand usage.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 01:02:11 +03:00
commit b9d00bdb9b
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6

View file

@ -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);