Improve plugin Description/README functionality

This commit is contained in:
djmaze 2021-03-04 12:15:11 +01:00
parent 1e13725768
commit a1ad4a8f27
9 changed files with 3 additions and 10 deletions

View file

@ -1 +0,0 @@
Adds X-Originating-IP header to outgoing message, containing sender's IP address.

View file

@ -1 +0,0 @@
Simple black list plugin

View file

@ -1 +0,0 @@
Plugin which allows you to set up custom username (login) by email address

View file

@ -1 +0,0 @@
custom-sytem-folders

View file

@ -5,7 +5,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
const
NAME = '',
CATEGORY = 'General',
DESCRIPTION = '';
DESCRIPTION = 'Set custom sytem folders';
/**
* @var string

View file

@ -1 +0,0 @@
Plugin which allows you to override smtp credentials specified users.

View file

@ -1 +0,0 @@
Add snowfall to your login screen :)

View file

@ -1 +0,0 @@
Simple white list plugin

View file

@ -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