mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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
|
const
|
||||||
NAME = '',
|
NAME = '',
|
||||||
CATEGORY = 'General',
|
CATEGORY = 'General',
|
||||||
DESCRIPTION = '';
|
DESCRIPTION = 'Set custom sytem folders';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @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
|
public function Description() : string
|
||||||
{
|
{
|
||||||
return static::DESCRIPTION;
|
$sFile = $this->Path().'/README';
|
||||||
// file_exists($oPlugin->Path().'/README') ? file_get_contents($oPlugin->Path().'/README') : ''
|
return \is_readable($sFile) ? \file_get_contents($sFile) : static::DESCRIPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function UseLangs(?bool $bLangs = null) : bool
|
public function UseLangs(?bool $bLangs = null) : bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue