Differences From Artifact [e9a05b7ff3]:

To Artifact [e305029466]:


593
594
595
596
597
598
599
600


























        }

        $dir->close();
        rmdir($path);

        return true;
    }
}

































|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
        }

        $dir->close();
        rmdir($path);

        return true;
    }

    static public function plugin_url($params)
    {
        if (!defined('Garradin\PLUGIN_URL'))
        {
            $url = WWW_URL . 'admin/plugin/' . $params['id'] . '/';
        }
        else
        {
            $url = PLUGIN_URL;
        }

        if (!empty($params['file']))
            $url .= $params['file'];

        if (!empty($params['query']))
        {
            $url .= '?';
            
            if (!(is_numeric($params['query']) && (int)$params['query'] === 1) && $params['query'] !== true)
                $url .= $params['query'];
        }

        return $url;
    }

}