Removed duplicated lines in templated.php
add check_plain