[RSS Feed/News] XF:Delete plugin code not able to identify local variables

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I've this in the template:
HTML:

<xf:delete href="{{ link('foo/bar/delete', $foo, {'source':'a1'}) }}" />

My public controller looks like the following:

PHP:

Code:
public function actionDelete(ParameterBag $params)
{
    $foo = $this->assertFooExists($params->sys_id);
  
    if(!$foo->canDelete($error))
    {
        return $this->noPermission($error);
    }

    $source = trim($this->filter('source', 'str'));

    if($source == 'b1')
    {
        $path = 'foo/bar/about';
        $entity =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom