Merge pull-request #445
This commit is contained in:
commit
74b193f8bf
@ -16,7 +16,7 @@ defined('ROOT_DIRECTORY') or define('ROOT_DIRECTORY', __DIR__);
|
||||
defined('DATA_DIRECTORY') or define('DATA_DIRECTORY', ROOT_DIRECTORY.DIRECTORY_SEPARATOR.'data');
|
||||
|
||||
defined('FAVICON_DIRECTORY') or define('FAVICON_DIRECTORY', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'favicons');
|
||||
defined('FAVICON_PUBLIC_DIRECTORY') or define('FAVICON_PUBLIC_DIRECTORY', 'data'.DIRECTORY_SEPARATOR.'favicons');
|
||||
defined('FAVICON_URL_PATH') or define('FAVICON_URL_PATH', 'data/favicons');
|
||||
|
||||
defined('ENABLE_MULTIPLE_DB') or define('ENABLE_MULTIPLE_DB', true);
|
||||
defined('DB_FILENAME') or define('DB_FILENAME', 'db.sqlite');
|
||||
|
@ -12,8 +12,8 @@ define('DATA_DIRECTORY', __DIR__.'/data');
|
||||
// FAVICON_DIRECTORY => default is favicons (writable directory)
|
||||
define('FAVICON_DIRECTORY', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'favicons');
|
||||
|
||||
// FAVICON_PUBLIC_DIRECTORY => default is data/favicons/
|
||||
define('FAVICON_PUBLIC_DIRECTORY', 'data'.DIRECTORY_SEPARATOR.'favicons');
|
||||
// FAVICON_URL_PATH => default is data/favicons/
|
||||
define('FAVICON_URL_PATH', 'data/favicons');
|
||||
|
||||
// DB_FILENAME => default value is db.sqlite (default database filename)
|
||||
define('DB_FILENAME', 'db.sqlite');
|
||||
|
@ -26,8 +26,8 @@ define('DATA_DIRECTORY', __DIR__.'/data');
|
||||
// FAVICON_DIRECTORY => default is favicons (writable directory)
|
||||
define('FAVICON_DIRECTORY', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'favicons');
|
||||
|
||||
// FAVICON_PUBLIC_DIRECTORY => default is data/favicons/
|
||||
define('FAVICON_PUBLIC_DIRECTORY', 'data'.DIRECTORY_SEPARATOR.'favicons');
|
||||
// FAVICON_URL_PATH => default is data/favicons/
|
||||
define('FAVICON_URL_PATH', 'data/favicons');
|
||||
|
||||
// DB_FILENAME => default value is db.sqlite (default database filename)
|
||||
define('DB_FILENAME', 'db.sqlite');
|
||||
|
@ -25,9 +25,9 @@ All information are available from the page **preferences > api**.
|
||||
Multiple databases/users
|
||||
------------------------
|
||||
|
||||
Multiple databases can be used with the Fever API if you have Apache and the `mod_rewrite` enabled.
|
||||
Multiple databases can be used with the Fever API if you have Apache and `mod_rewrite` enabled.
|
||||
|
||||
The Fever URL becomes `http://your_miniflux_url/myuser.sqlite/`.
|
||||
The Fever URL becomes `http://your_miniflux_url/fever/mydatabase.sqlite/`.
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
@ -52,7 +52,7 @@ function favicon_extension($type)
|
||||
function favicon(array $favicons, $feed_id)
|
||||
{
|
||||
if (! empty($favicons[$feed_id])) {
|
||||
return '<img src="'.FAVICON_PUBLIC_DIRECTORY.DIRECTORY_SEPARATOR.$favicons[$feed_id].'" class="favicon"/>';
|
||||
return '<img src="'.FAVICON_URL_PATH.'/'.$favicons[$feed_id].'" class="favicon"/>';
|
||||
}
|
||||
|
||||
return '';
|
||||
|
@ -98,7 +98,7 @@
|
||||
<nav class="bottom">
|
||||
<span class="nav-left">
|
||||
<?php if ($item_nav['previous']): ?>
|
||||
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= Helper\escape($item_nav['previous']['title']) ?>"><?= t('Previous') ?></a>
|
||||
<a href="?action=show&menu=<?= $menu ?><?= $group_id ? '&group_id='.$group_id : '' ?>&id=<?= $item_nav['previous']['id'] ?>" id="previous-item" title="<?= Helper\escape($item_nav['previous']['title']) ?>"><?= t('Previous') ?></a>
|
||||
<?php else: ?>
|
||||
<?= t('Previous') ?>
|
||||
<?php endif ?>
|
||||
@ -106,7 +106,7 @@
|
||||
|
||||
<span class="nav-right">
|
||||
<?php if ($item_nav['next']): ?>
|
||||
<a href="?action=show&menu=<?= $menu ?>&id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= Helper\escape($item_nav['next']['title']) ?>"><?= t('Next') ?></a>
|
||||
<a href="?action=show&menu=<?= $menu ?><?= $group_id ? '&group_id='.$group_id : '' ?>&id=<?= $item_nav['next']['id'] ?>" id="next-item" title="<?= Helper\escape($item_nav['next']['title']) ?>"><?= t('Next') ?></a>
|
||||
<?php else: ?>
|
||||
<?= t('Next') ?>
|
||||
<?php endif ?>
|
||||
|
Loading…
Reference in New Issue
Block a user