mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 21:34:35 -04:00
Change how files are included (#7916)
1. `include`, `include_once`, `require` and `require_once` are expressions not functions, parentheses are not necessary. 2. to move up the directory tree, it's better to use the `dirname` function instead of relying on `/..`.
This commit is contained in:
committed by
GitHub
parent
3d85eb1938
commit
23ba48c71f
10
cli/_cli.php
10
cli/_cli.php
@@ -7,11 +7,11 @@ if (php_sapi_name() !== 'cli') {
|
||||
|
||||
const EXIT_CODE_ALREADY_EXISTS = 3;
|
||||
|
||||
require(__DIR__ . '/../constants.php');
|
||||
require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
|
||||
require(LIB_PATH . '/lib_install.php');
|
||||
require_once(__DIR__ . '/CliOption.php');
|
||||
require_once(__DIR__ . '/CliOptionsParser.php');
|
||||
require dirname(__DIR__) . '/constants.php';
|
||||
require LIB_PATH . '/lib_rss.php'; //Includes class autoloader
|
||||
require LIB_PATH . '/lib_install.php';
|
||||
require_once __DIR__ . '/CliOption.php';
|
||||
require_once __DIR__ . '/CliOptionsParser.php';
|
||||
|
||||
Minz_Session::init('FreshRSS', true);
|
||||
FreshRSS_Context::initSystem();
|
||||
|
||||
Reference in New Issue
Block a user