Explorar o código

阅读模式使用html格式原文

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
4febad209d
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      app/Http/Controllers/CorpusController.php

+ 6 - 1
app/Http/Controllers/CorpusController.php

@@ -72,7 +72,12 @@ class CorpusController extends Controller
     public function getSentTpl($id,$channels,$mode='edit',$onlyProps=false){
     public function getSentTpl($id,$channels,$mode='edit',$onlyProps=false){
         $sent = [];
         $sent = [];
         $sentId = \explode('-',$id);
         $sentId = \explode('-',$id);
-        $channelId = ChannelApi::getSysChannel('_System_Wbw_VRI_');
+        if($mode==='read'){
+            $channelId = ChannelApi::getSysChannel('_System_Pali_VRI_');
+        }else{
+            $channelId = ChannelApi::getSysChannel('_System_Wbw_VRI_');
+        }
+
         if($channelId !== false){
         if($channelId !== false){
             array_push($channels,$channelId);
             array_push($channels,$channelId);
         }
         }