CMS MADE SIMPLE FORGE

CGSimpleSmarty

 

[#11962] Alias not optional in get_sibling

avatar
Created By: Mark Steer (markSt)
Date Submitted: Wed Jan 30 07:50:24 -0500 2019

Assigned To: Robert Campbell (calguy1000)
Version: 2.2.1
CMSMS Version: 2.2.9
Severity: Major
Resolution: None
State: Open
Summary:
Alias not optional in get_sibling
Detailed Description:
Hello,

Using the syntax ($prev=cgsimple::get_sibling("prev")}, for example, throws an
error because the alias is not an optional argument in the class, here's an
example error:

'PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments
to function cgsimple::get_sibling(), 1 passed in
templates_c/fc6d4015a0207ffcc00bd84890043ccaea513753_0.tpl_body.33.php on line
64 and exactly 2 expected.

The alternate syntax: (cgsimple::get_sibling("prev", "prev")} doesn't appear to
populate the alias.


Thanks,

Mark.


History