From b84b865d45b00600d982fef18991398cb655c7e9 Mon Sep 17 00:00:00 2001 From: nashe Date: Tue, 11 Aug 2015 12:04:53 +0200 Subject: Clean code Replace dirname(__FILE__) by __DIR__. --- admin/subscriptions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'admin/subscriptions.php') diff --git a/admin/subscriptions.php b/admin/subscriptions.php index 8367a16..f2d51f5 100755 --- a/admin/subscriptions.php +++ b/admin/subscriptions.php @@ -1,7 +1,7 @@ getName() === '') { $PlanetConfig->setName($oldOpml->getTitle()); } - $oldOpml = OpmlManager::load(dirname(__FILE__).'/../custom/people.opml'); + $oldOpml = OpmlManager::load(__DIR__.'/../custom/people.opml'); $newOpml = new opml(); $newOpml->title = $PlanetConfig->getName(); @@ -57,10 +57,10 @@ if (isset($_POST['opml']) || isset($_POST['add'])) { } // Backup old OPML - OpmlManager::backup(dirname(__FILE__).'/../custom/people.opml'); + OpmlManager::backup(__DIR__.'/../custom/people.opml'); // Save new OPML - OpmlManager::save($newOpml, dirname(__FILE__).'/../custom/people.opml'); + OpmlManager::save($newOpml, __DIR__.'/../custom/people.opml'); } header("Location: index.php"); die(); -- cgit v1.2.1