Commit fb48600a by Scott

Remove content change from upgrade

parent 775bd465
......@@ -1431,21 +1431,7 @@
// Up to here: Verison 1.7
case 59:
// Fix path to WYSIWYG editor smilies
require_once QA_INCLUDE_DIR.'app/posts.php';
qa_db_upgrade_query('UNLOCK TABLES');
$sql = 'SELECT postid, title, content FROM ^posts WHERE format="html" AND content LIKE "%/wysiwyg-editor/plugins/smiley/images/%"';
$result = qa_db_query_sub($sql);
while (($post=qa_db_read_one_assoc($result, true)) !== null) {
$search = '#<(img|a)([^>]+)(src|href)="([^"]+)/wysiwyg-editor/plugins/smiley/images/([^"]+)"#';
$replace = '<$1$2$3="$4/wysiwyg-editor/ckeditor/plugins/smiley/images/$5"';
$newcontent = preg_replace($search, $replace, $post['content']);
qa_post_set_content($post['postid'], $post['title'], $newcontent);
}
qa_db_upgrade_query($locktablesquery);
// Upgrade from alpha version removed
break;
// Up to here: Verison 1.7.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment