blob: d622577a8c3e3d48efe11b62b66323a5594f4739 (
plain) (
tree)
|
|
--- a/init.php 2014-06-16 14:21:06.995480038 +0200
+++ b/init.php 2014-06-16 14:22:00.151027654 +0200
@@ -147,6 +147,9 @@
}
}
break;
+ case 'replace':
+ $article['content'] = preg_replace("/".$config['pattern']."/",$config['replacement'],$article['content']);
+ break;
default:
// unknown type or invalid config
|