mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08:00
Improve plugin Description/README functionality
This commit is contained in:
parent
1e13725768
commit
a1ad4a8f27
9 changed files with 3 additions and 10 deletions
|
@ -1 +0,0 @@
|
|||
Adds X-Originating-IP header to outgoing message, containing sender's IP address.
|
|
@ -1 +0,0 @@
|
|||
Simple black list plugin
|
|
@ -1 +0,0 @@
|
|||
Plugin which allows you to set up custom username (login) by email address
|
|
@ -1 +0,0 @@
|
|||
custom-sytem-folders
|
|
@ -5,7 +5,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
const
|
||||
NAME = '',
|
||||
CATEGORY = 'General',
|
||||
DESCRIPTION = '';
|
||||
DESCRIPTION = 'Set custom sytem folders';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Plugin which allows you to override smtp credentials specified users.
|
|
@ -1 +0,0 @@
|
|||
Add snowfall to your login screen :)
|
|
@ -1 +0,0 @@
|
|||
Simple white list plugin
|
|
@ -72,8 +72,8 @@ abstract class AbstractPlugin
|
|||
|
||||
public function Description() : string
|
||||
{
|
||||
return static::DESCRIPTION;
|
||||
// file_exists($oPlugin->Path().'/README') ? file_get_contents($oPlugin->Path().'/README') : ''
|
||||
$sFile = $this->Path().'/README';
|
||||
return \is_readable($sFile) ? \file_get_contents($sFile) : static::DESCRIPTION;
|
||||
}
|
||||
|
||||
public function UseLangs(?bool $bLangs = null) : bool
|
||||
|
|
Loading…
Reference in a new issue