Hello Everyone!
Monstra is open source, community driven project, and maintained by community!
1 Topic by tovic 2014-02-12 00:17:47 (edited by tovic 2014-02-12 00:18:35)
- tovic
- Monstra Student
- Offline
- From: Banyumas, Indonesia
- Posts: 84
- Reputation : [ 5 | 0 ]
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
2 Reply by tovic 2014-02-12 06:36:54
- tovic
- Monstra Student
- Offline
- From: Banyumas, Indonesia
- Posts: 84
- Reputation : [ 5 | 0 ]
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
- Awilum
- Monstra Founder & Lead Developer
- Offline
- From: Russian Federation
- Posts: 523
- Reputation : [ 24 | 0 ]
Re: How can I check if the plugin is not exists?
yes, you're absolutely right
Posts: 3