diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-12 16:32:55 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-12 16:32:55 +0100 |
commit | 3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6 (patch) | |
tree | 14b1c573aa7cacdf34cc3d8b76103046d35a3e5d /app | |
parent | b22bf1b43749f4c99beaa13fb9a83051668b123e (diff) | |
download | planet-3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6.tar planet-3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6.tar.gz planet-3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6.tar.bz2 planet-3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6.tar.xz planet-3e1f947693ec5ede5f58fc0dd9e9ed086cbcc7d6.zip |
Make OpmlManager save and backup static
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/lib.opml.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/lib.opml.php b/app/lib/lib.opml.php index ecb71a8..7a20321 100644 --- a/app/lib/lib.opml.php +++ b/app/lib/lib.opml.php @@ -86,7 +86,7 @@ class OpmlManager } } - public function save($opml, $file){ + public static function save($opml, $file){ $out = '<?xml version="1.0"?>'."\n"; $out.= '<opml version="1.1">'."\n"; $out.= '<head>'."\n"; @@ -104,7 +104,7 @@ class OpmlManager file_put_contents($file, $out); } - public function backup($file){ + public static function backup($file){ copy($file, $file.'.bak'); } } |