Resolved gh-364 to allow greater depth and ensure that all custom code placeholders are always update/replaced at any depth layer. Tweaked the editURL method to also handle access control permissions.
This commit is contained in:
@ -4915,7 +4915,7 @@ class Get
|
||||
// when the custom code is loaded
|
||||
if ($loaded === true)
|
||||
{
|
||||
$string = $this->insertCustomCode($string, $debug);
|
||||
$string = $this->insertCustomCode($bucket, $string, $debug);
|
||||
}
|
||||
// if debug
|
||||
if ($debug)
|
||||
@ -4936,19 +4936,13 @@ class Get
|
||||
* @return string on success
|
||||
*
|
||||
*/
|
||||
protected function insertCustomCode($string, $debug = 0)
|
||||
protected function insertCustomCode($ids, $string, $debug = 0)
|
||||
{
|
||||
$code = array();
|
||||
// if debug
|
||||
if ($debug)
|
||||
{
|
||||
echo '$this->customCode:';
|
||||
var_dump($this->customCode);
|
||||
}
|
||||
// load the code
|
||||
foreach ($this->customCode as $item)
|
||||
foreach ($ids as $id)
|
||||
{
|
||||
$this->buildCustomCodePlaceholders($item, $code, $debug);
|
||||
$this->buildCustomCodePlaceholders($this->customCodeMemory[$id], $code, $debug);
|
||||
}
|
||||
// if debug
|
||||
if ($debug)
|
||||
|
Reference in New Issue
Block a user