浏览代码

! Doh! ... wrong var used for the preview length restriction (was post :P)

Spuds 13 年之前
父节点
当前提交
a292160321
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/ManagePosts.php

+ 1 - 1
Sources/ManagePosts.php

@@ -255,7 +255,7 @@ function ModifyPostSettings($return_config = false)
 		
 		// If we're changing the post preview length let's check its valid
 		if (!empty($_POST['preview_characters']))
-			$_POST['max_messageLength'] = (int) min(max(0, $_POST['max_messageLength']), 512);
+			$_POST['preview_characters'] = (int) min(max(0, $_POST['preview_characters']), 512);
 
 		call_integration_hook('integrate_save_post_settings');