Quellcode durchsuchen

阅读模式使用html格式原文

visuddhinanda vor 3 Jahren
Ursprung
Commit
4febad209d
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  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){
         $sent = [];
         $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){
             array_push($channels,$channelId);
         }