Fix attachment bbcodes (MyBB)
authorTim Düsterhus <timwolla@googlemail.com>
Mon, 2 Dec 2013 19:21:52 +0000 (20:21 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Mon, 2 Dec 2013 19:21:52 +0000 (20:21 +0100)
files/lib/system/exporter/MyBB16xExporter.class.php

index 294a2b27af7ff1e3f90edbf6c6a1af6eff942661..f45d4024df57cc36a405e59958199ac22dccf76f 100644 (file)
@@ -1278,6 +1278,9 @@ class MyBB16xExporter extends AbstractExporter {
                        });
                }
                
+               // attachment bbcodes
+               $message = str_replace(array('[attachment=', '[/attachment]'), array('[attach=', '[/attach]'), $message);
+               
                // code bbcodes
                $message = str_replace('[php]', '[code=php]', $message);