Fixed strip_pages bug.

This commit is contained in:
mchurch
2004-09-13 23:03:42 +00:00
parent 90c78e649f
commit d2481a47ba
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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
View File
@@ -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 {