visuddhinanda 4 лет назад
Родитель
Сommit
a0feacb65b
2 измененных файлов с 7 добавлено и 1 удалено
  1. 4 1
      app/article/index.php
  2. 3 0
      app/reader/get_para1.php

+ 4 - 1
app/article/index.php

@@ -61,6 +61,9 @@ require_once "../pcdl/html_head.php";
 	if(isset($_GET["start"])){
 		echo "_start=".$_GET["start"].";";
 	}
+	if(isset($_GET["begin"])){
+		echo "_start=".$_GET["begin"].";";
+	}
 	if(isset($_GET["end"])){
 		echo "_end=".$_GET["end"].";";
 	}
@@ -284,7 +287,7 @@ function set_toc_visible(isVisible){
 				echo "&start=".$_GET["start"];
 			}
 			if(isset($_GET["end"])){
-				echo "$end=".$_GET["end"];
+				echo "&end=".$_GET["end"];
 			}
 			echo "'>{$_local->gui->add}{$_local->gui->subfield}</a></button>";	
 				

+ 3 - 0
app/reader/get_para1.php

@@ -23,6 +23,9 @@ if (isset($_GET["par"])) {
 if (isset($_GET["start"])) {
     $_start = $_GET["start"];
 }
+if (isset($_GET["begin"])) {
+    $_start = $_GET["begin"];
+}
 if (isset($_GET["end"])) {
     $_end = $_GET["end"];
 }