]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/feed/CachedPage.php
namespacing: \Shaarli\Feed\{Cache,CachedPage,FeedBuilder}
[github/shaarli/Shaarli.git] / application / feed / CachedPage.php
similarity index 93%
rename from application/CachedPage.php
rename to application/feed/CachedPage.php
index e11cc52d01e3aeac07142c476d76e35bf7b88229..1c51ac7397569011a8914abecfc180bbb33b26bb 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+
+namespace Shaarli\Feed;
 /**
  * Simple cache system, mainly for the RSS/ATOM feeds
  */
@@ -24,7 +26,7 @@ class CachedPage
     {
         // TODO: check write access to the cache directory
         $this->cacheDir = $cacheDir;
-        $this->filename = $this->cacheDir.'/'.sha1($url).'.cache';
+        $this->filename = $this->cacheDir . '/' . sha1($url) . '.cache';
         $this->shouldBeCached = $shouldBeCached;
     }