summaryrefslogtreecommitdiffstats
path: root/app/classes
diff options
context:
space:
mode:
Diffstat (limited to 'app/classes')
-rw-r--r--app/classes/Planet.php4
-rw-r--r--app/classes/PlanetFeed.php2
-rwxr-xr-xapp/classes/Simplel10n.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/classes/Planet.php b/app/classes/Planet.php
index f502d7a..baba7c1 100644
--- a/app/classes/Planet.php
+++ b/app/classes/Planet.php
@@ -169,7 +169,7 @@ class Planet
public function download($max_load=0.1)
{
$max_load_feeds = ceil(count($this->people) * $max_load);
- $opml = OpmlManager::load(dirname(__FILE__).'/../../custom/people.opml');
+ $opml = OpmlManager::load(__DIR__.'/../../custom/people.opml');
foreach ($this->people as $feed) {
//Avoid mass loading with variable cache duration
@@ -203,7 +203,7 @@ class Planet
}
}
}
- OpmlManager::save($opml, dirname(__FILE__).'/../../custom/people.opml');
+ OpmlManager::save($opml, __DIR__.'/../../custom/people.opml');
}
public function sort()
diff --git a/app/classes/PlanetFeed.php b/app/classes/PlanetFeed.php
index 7c79471..f63ac5a 100644
--- a/app/classes/PlanetFeed.php
+++ b/app/classes/PlanetFeed.php
@@ -19,7 +19,7 @@ class PlanetFeed extends SimplePie
$this->isDown = $isDown;
parent::__construct();
$this->set_item_class('PlanetItem');
- $this->set_cache_location(dirname(__FILE__).'/../../cache');
+ $this->set_cache_location(__DIR__.'/../../cache');
$this->set_autodiscovery_level(SIMPLEPIE_LOCATOR_NONE);
$this->set_feed_url($this->getFeed());
$this->set_timeout(5);
diff --git a/app/classes/Simplel10n.php b/app/classes/Simplel10n.php
index 7af8564..79313b3 100755
--- a/app/classes/Simplel10n.php
+++ b/app/classes/Simplel10n.php
@@ -9,7 +9,7 @@ class Simplel10n {
public function __construct($locale='en') {
$GLOBALS['locale'] = array();
$this->locale = $locale;
- $this->l10nFolder = dirname(__FILE__) . '/../l10n/';
+ $this->l10nFolder = __DIR__ . '/../l10n/';
$this->load($this->l10nFolder . $this->locale);
}