diff options
Diffstat (limited to 'lib/rssbridge.php')
-rw-r--r-- | lib/rssbridge.php | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/rssbridge.php b/lib/rssbridge.php index cd156fe8..560c0fe4 100644 --- a/lib/rssbridge.php +++ b/lib/rssbridge.php @@ -1,4 +1,5 @@ <?php + /** * This file is part of RSS-Bridge, a PHP project capable of generating RSS and * Atom feeds for websites that don't have one. @@ -6,9 +7,9 @@ * For the full license information, please view the UNLICENSE file distributed * with this source code. * - * @package Core - * @license http://unlicense.org/ UNLICENSE - * @link https://github.com/rss-bridge/rss-bridge + * @package Core + * @license http://unlicense.org/ UNLICENSE + * @link https://github.com/rss-bridge/rss-bridge */ /** Path to the root folder of RSS-Bridge (where index.php is located) */ @@ -64,19 +65,19 @@ require_once PATH_LIB_VENDOR . 'php-urljoin/src/urljoin.php'; require_once PATH_LIB_VENDOR . 'simplehtmldom/simple_html_dom.php'; spl_autoload_register(function ($className) { - $folders = [ - __DIR__ . '/../actions/', - __DIR__ . '/../bridges/', - __DIR__ . '/../caches/', - __DIR__ . '/../formats/', - __DIR__ . '/../lib/', - ]; - foreach ($folders as $folder) { - $file = $folder . $className . '.php'; - if (is_file($file)) { - require $file; - } - } + $folders = [ + __DIR__ . '/../actions/', + __DIR__ . '/../bridges/', + __DIR__ . '/../caches/', + __DIR__ . '/../formats/', + __DIR__ . '/../lib/', + ]; + foreach ($folders as $folder) { + $file = $folder . $className . '.php'; + if (is_file($file)) { + require $file; + } + } }); Configuration::verifyInstallation(); |