Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jun 1, 2017
1 parent 16633e2 commit 1790b4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions Application/Home/Controller/PageController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,13 @@ public function save(){
D("PageHistory")->where(" page_id = '$page_id' and page_history_id < ".$ret[19]['page_history_id'] )->delete();
}

//更新项目时间
D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time()));
//如果是单页项目,则将页面标题设置为项目名
$item_array = D("Item")->where(" item_id = '$item_id' ")->find();
if ($item_array['item_type'] == 2 ) {
D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time(),"item_name"=>$page_title));
}else{
D("Item")->where(" item_id = '$item_id' ")->save(array("last_update_time"=>time()));
}

$return = D("Page")->where(" page_id = '$page_id' ")->find();
}else{
Expand Down
2 changes: 1 addition & 1 deletion Application/Home/View/User/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h3 class="form-signin-heading">{$Think.Lang.login}</h3>
<input type="text" class="input-block-level" name="username" placeholder="{$Think.Lang.username}">
<input type="password" class="input-block-level" name="password" placeholder="{$Think.Lang.password}">
<if condition="$CloseVerify != 1">
<input type="text" class="input-block-level" name="v_code" placeholder="{$Think.Lang.verification_code}">
<input type="text" class="input-block-level" autocomplete="off" name="v_code" placeholder="{$Think.Lang.verification_code}">
<div class="control-group">
<div class="controls">
<img src="#" id="v_code_img">
Expand Down
2 changes: 1 addition & 1 deletion Application/Home/View/User/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h3 class="form-signin-heading">{$Think.Lang.register_new_account}</h3>
<input type="password" class="input-block-level" name="password" placeholder="{$Think.Lang.password}">
<input type="password" class="input-block-level" name="confirm_password" placeholder="{$Think.Lang.password_again}">
<if condition="$CloseVerify != 1">
<input type="text" class="input-block-level" name="v_code" placeholder="{$Think.Lang.verification_code}">
<input type="text" class="input-block-level" autocomplete="off" name="v_code" placeholder="{$Think.Lang.verification_code}">
<div class="control-group">
<div class="controls">
<img src="#" id="v_code_img">
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v1.4.2",
"version":"v1.4.3",
"license": "Apache-2.0",
"authors": [
{
Expand Down

0 comments on commit 1790b4c

Please sign in to comment.