mirror of
https://github.com/Mibew/geo-ip-plugin.git
synced 2024-11-15 00:44:13 +03:00
parent
079b9e8686
commit
001cb3598f
15
Plugin.php
15
Plugin.php
@ -139,6 +139,21 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns plugin's system requirements
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public static function getSystemRequirements()
|
||||
{
|
||||
if (extension_loaded('gmp')) {
|
||||
return array('ext-gmp' => '*');
|
||||
}
|
||||
else {
|
||||
return array('ext-bcmath' => '*');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Format locale name using "xx-XX" format.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user