1 2014-02-12 00:17:47 (edited by tovic 2014-02-12 00:18:35)

Topic: How can I check if the plugin is not exists?

Hi, how can I check if the plugin is not exists?

if( ! Morfy::factory()->runAction('comments')) {
    echo '

This plugin requires comment plugin. Download here

'; } else { Morfy::factory()->runAction('comments'); }
XSS Testing

tovic's Website

2 2014-02-12 06:36:54

Re: How can I check if the plugin is not exists?

I got it.

if( ! in_array('comments', Morfy::$config['plugins'])) {
    echo 'This plugin requires comment plugin to be installed.';
}
XSS Testing

tovic's Website

Re: How can I check if the plugin is not exists?

yes, you're absolutely right smile

Monstra Loves You! Give some love back!