Fixed strip_pages bug.
This commit is contained in:
@@ -165,7 +165,6 @@
|
||||
if(!$confirm && $form->pagestostrip) {
|
||||
$err=array();
|
||||
$strippages=wiki_admin_strip_versions($form->pagestostrip,$form->version, $err);
|
||||
|
||||
$confirm="";
|
||||
foreach($strippages as $cnfid => $cnfver) {
|
||||
$confirm.="&confirm[$cnfid]=".urlencode(join(" ",$cnfver));
|
||||
|
||||
+1
-1
@@ -1261,7 +1261,7 @@ function wiki_admin_strip_versions($pagestostrip, $version, &$err) {
|
||||
$versZ = $uu[2];
|
||||
|
||||
// Let the last Version in the database
|
||||
$checkdata = ewiki_database("GET", array("id" => $id_ue));
|
||||
$checkdata = ewiki_database("GET", array("id" => $id));
|
||||
if($versZ>=$checkdata["version"]) {
|
||||
$err[$id][] = get_string("versionrangetoobig","wiki");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user