summaryrefslogtreecommitdiffstats
path: root/admin/index.php
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2015-08-15 17:22:21 +0200
committerMaurice Svay <maurice@svay.com>2015-08-15 17:22:21 +0200
commitcb9c81174bf91cb2bf29887e4d2c4a03f424d03c (patch)
tree5f3d0432facd74395d029c480bb79d9e0669eb01 /admin/index.php
parente47418ee75998ae22a506b8fd596dbba58388266 (diff)
parentb84b865d45b00600d982fef18991398cb655c7e9 (diff)
downloadplanet-cb9c81174bf91cb2bf29887e4d2c4a03f424d03c.tar
planet-cb9c81174bf91cb2bf29887e4d2c4a03f424d03c.tar.gz
planet-cb9c81174bf91cb2bf29887e4d2c4a03f424d03c.tar.bz2
planet-cb9c81174bf91cb2bf29887e4d2c4a03f424d03c.tar.xz
planet-cb9c81174bf91cb2bf29887e4d2c4a03f424d03c.zip
Merge pull request #75 from nashe/path-autoloading
Fix autoloading
Diffstat (limited to 'admin/index.php')
-rwxr-xr-xadmin/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/index.php b/admin/index.php
index 76ddc98..42ddf19 100755
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,10 +1,10 @@
<?php
-require_once dirname(__FILE__) . '/inc/auth.inc.php';
-require_once dirname(__FILE__) . '/../app/app.php';
+require_once __DIR__ . '/../app/app.php';
+require_once __DIR__ . '/inc/auth.inc.php';
//Load configuration
-$config_file = dirname(__FILE__) . '/../custom/config.yml';
+$config_file = __DIR__ . '/../custom/config.yml';
if (is_file($config_file)){
$conf = Spyc::YAMLLoad($config_file);
@@ -17,7 +17,7 @@ if (is_file($config_file)){
$Planet = new Planet($PlanetConfig);
//Load
-if (0 < $Planet->loadOpml(dirname(__FILE__) . '/../custom/people.opml')) {
+if (0 < $Planet->loadOpml(__DIR__ . '/../custom/people.opml')) {
$Planet->loadFeeds();
$items = $Planet->getItems();
}
@@ -136,4 +136,4 @@ $page_content = ob_get_contents();
ob_end_clean();
$admin_access = 1;
-require_once dirname(__FILE__) . '/template.php';
+require_once __DIR__ . '/template.php';