想要修改一下错误提示的模板,找了mm_imessage()这个函数,内容如下:
function mm_imessage($message, $backurl = '0') { ob_end_clean(); global $default_head, $default_foot; $tmyhead = mm_web_head($default_head); $tmyfoot = mm_web_foot($default_foot); if ($backurl == '0') $tmybody = ii_ireplace('global.tpl_common.web_messages', 'tpl'); else $tmybody = ii_ireplace('global.tpl_common.web_message', 'tpl'); $tmybody = str_replace('{$message}', $message, $tmybody); $tmybody = str_replace('{$backurl}', $backurl, $tmybody); $tmyhtml = $tmyhead . $tmybody . $tmyfoot; echo $tmyhtml; exit(); }
不知是mm_imessage()还是mm_web_head()的问题,我把$default_head改成了$123(已建好模板),改后就没有这部分的模板。老大来看看!
下面是: function mm_web_head($key) { global $ntitle; $tweb_title = ii_itake('global.module.web_title', 'lng'); if (!(ii_isnull($ntitle))) $tweb_title = $ntitle . SP_STR . $tweb_title; $thead = ii_ireplace('global.tpl_public.' . $key, 'tpl'); $thead = str_replace('{$web_title}', $tweb_title, $thead); return $thead; }
|