mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 06:46:27 +00:00
Improve plugin Description/README functionality
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user