]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blob - pkgs/webapps/ttrss/plugins/af_feedmod/type_replace.patch
Initial commit published for NUR
[perso/Immae/Config/Nix/NUR.git] / pkgs / webapps / ttrss / plugins / af_feedmod / type_replace.patch
1 --- a/init.php 2014-06-16 14:21:06.995480038 +0200
2 +++ b/init.php 2014-06-16 14:22:00.151027654 +0200
3 @@ -147,6 +147,9 @@
4 }
5 }
6 break;
7 + case 'replace':
8 + $article['content'] = preg_replace("/".$config['pattern']."/",$config['replacement'],$article['content']);
9 + break;
10
11 default:
12 // unknown type or invalid config