Skip to content

Commit 2744d2a

Browse files
authored
更新编辑器
1 parent d04f12a commit 2744d2a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

plugin/class/edit/edit.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<?php
22
/* (C)2005-2021 FoundPHP Framework.
3-
* 官网:http://www.FoundPHP.com
4-
* 邮箱:43309611@qq.com
3+
* name: Ease Template
4+
* weburl: http://www.FoundPHP.com
5+
* mail: master@FoundPHP.com
6+
* author: 孟大川
7+
* version: 1.21.34
8+
* start: 2013-02-19
9+
* update: 2021-03-04
10+
* payment: Free 免费
511
* This is not a freeware, use is subject to license terms.
612
* 此软件为授权使用软件,请参考软件协议。
713
* http://www.foundphp.com/?m=agreement
8-
* Last:2020-01-20
14+
915
*/
1016

1117
class FoundPHP_edit{
@@ -14,10 +20,6 @@ class FoundPHP_edit{
1420
//构造快递方法
1521
function __construct($ary=array()) {
1622

17-
if (!isset($ary['type']) || $ary['type'] == '') {
18-
return '请设置类型';
19-
}
20-
2123
$this->type = strtolower($ary['type']);
2224
//默认字符文本
2325
if (in_array($this->type,array('text',''))){
@@ -30,7 +32,7 @@ function __construct($ary=array()) {
3032
$this->ed = new edit_api($ary);
3133

3234
}else{
33-
die('抱歉,找不到 '.$this->type.'');//不存在
35+
$this->type = 'text';
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)