summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xadmin/subscriptions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin/subscriptions.php b/admin/subscriptions.php
index f8e4c2c..f63af8f 100755
--- a/admin/subscriptions.php
+++ b/admin/subscriptions.php
@@ -9,13 +9,11 @@ function removeSlashes(&$item, $key){
if (isset($_POST['opml']) || isset($_POST['add'])) {
- // Load config and old OPML
- $conf = Spyc::YAMLLoad(__DIR__.'/../custom/config.yml');
- $PlanetConfig = new PlanetConfig($conf);
+ // Load old OPML
+ $oldOpml = OpmlManager::load(__DIR__.'/../custom/people.opml');
if ($PlanetConfig->getName() === '') {
$PlanetConfig->setName($oldOpml->getTitle());
}
- $oldOpml = OpmlManager::load(__DIR__.'/../custom/people.opml');
$newOpml = new opml();
$newOpml->title = $PlanetConfig->getName();