• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Duplicate Code (Not really a bug)

R

ragtek

Guest
#1
In class XenForo_ControllerAdmin_AddOn you define the datawriter 2 times in method actionDelete

XenForo_ControllerAdmin_AddOn::actionDelete (line 110):
PHP:
$dw = XenForo_DataWriter::create('XenForo_DataWriter_AddOn');
        $dw->setExistingData($addOnId);

        if ($this->isConfirmedPost()) // delete add-on
        {
            $dw = XenForo_DataWriter::create('XenForo_DataWriter_AddOn');
            $dw->setExistingData($addOnId);
            $dw->delete();