设为首页收藏本站淘宝杂货铺

从F到0 - From F to 0

 找回密码
 注册已关闭
搜索
查看: 2035|回复: 0
收起左侧

Discuz! X 提示信息函数 showmessage(); 输出半角冒号无法正常显示BUG的解决办法

[复制链接]
发表于 2019-12-7 16:26:05 | 显示全部楼层 |阅读模式
错误写法:
  1. <?php
  2. require './source/class/class_core.php';
  3. C::app()->init();
  4.         showmessage("ABC:DEF");
  5. ?>
复制代码


其中ABC会被函数识别为插件名的语言包部分而被被截断,只有DEF可以正常显示,添加以下,恢复正常(添加后不查询语言包):
  1. <?php
  2. require './source/class/class_core.php';
  3. C::app()->init();
  4.         showmessage("<!--::-->ABC:DEF");
  5. ?>
复制代码

相关帖子

您需要登录后才可以回帖 登录 | 注册已关闭

本版积分规则

QQ|手机版|Archiver|从F到0 ( 蒙ICP备17002595号-1 )
蒙公网安备15010402000325号

腾讯云安全认证

GMT+8, 2024-4-19 17:00 , Processed in 0.519030 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表