From: Rotem Liss Date: Fri, 29 Aug 2008 13:17:12 +0000 (+0000) Subject: * Fixing a wrong count of succeeding file undeletions when private files are undelete... X-Git-Tag: 1.31.0-rc.0~45562 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=e323edf47aab2bbdbe9b100ad01e121a650aab02;p=lhc%2Fweb%2Fwiklou.git * Fixing a wrong count of succeeding file undeletions when private files are undeleted: private files are not moved, and thus are not counted by storeBatch and should be added to the success count manually. This showed a bougs error when only private files were undeleted. * Removing an outdated note in Special:Undelete: Restrictions on file revisions do not seem to be lost upon restoration. --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index a7404f7123..63ce035b23 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -1625,6 +1625,7 @@ class LocalFileRestoreBatch { $deleteIds[] = $row->fa_id; if( !$this->unsuppress && $row->fa_deleted & File::DELETED_FILE ) { // private files can stay where they are + $status->successCount++; } else { $storeBatch[] = array( $deletedUrl, 'public', $destRel ); $this->cleanupBatch[] = $row->fa_storage_key; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 6deb21cf85..f2e6101412 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2325,8 +2325,7 @@ To perform a selective restoration, check the boxes corresponding to the revisio Clicking '''''Reset''''' will clear the comment field and all checkboxes.", 'undeleterevisions' => '$1 {{PLURAL:$1|revision|revisions}} archived', 'undeletehistory' => 'If you restore the page, all revisions will be restored to the history. -If a new page with the same name has been created since the deletion, the restored revisions will appear in the prior history. -Also note that restrictions on file revisions are lost upon restoration', +If a new page with the same name has been created since the deletion, the restored revisions will appear in the prior history.', 'undeleterevdel' => 'Undeletion will not be performed if it will result in the top page or file revision being partially deleted. In such cases, you must uncheck or unhide the newest deleted revision.', 'undeletehistorynoadmin' => 'This page has been deleted. diff --git a/languages/messages/MessagesHe.php b/languages/messages/MessagesHe.php index bcb0e09f01..0a2c9f15f7 100644 --- a/languages/messages/MessagesHe.php +++ b/languages/messages/MessagesHe.php @@ -1946,7 +1946,8 @@ $NEWPAGE 'undelete-fieldset-title' => 'שחזור גרסאות', 'undeleteextrahelp' => 'לשחזור הדף כולו, אל תסמנו אף תיבת סימון ולחצו על "שחזור". לשחזור של גרסאות מסוימות בלבד, סמנו את תיבות הסימון של הגרסאות הללו, ולחצו על "שחזור". לחיצה על "איפוס" תנקה את התקציר, ואת כל תיבות הסימון.', 'undeleterevisions' => '{{PLURAL:$1|גרסה אחת נשמרה|$1 גרסאות נשמרו}} בארכיון', -'undeletehistory' => 'אם תשחזרו את הדף, כל הגרסאות תשוחזרנה להיסטוריית השינויים שלו. אם כבר יש דף חדש באותו השם, הגרסאות והשינויים יופיעו רק בדף ההיסטוריה שלו. בנוסף, הגבלות המוטלות על גרסאות קבצים נמחקות במהלך השחזור.', +'undeletehistory' => 'אם תשחזרו את הדף, כל הגרסאות תשוחזרנה להיסטוריית השינויים שלו. +אם יש כבר דף חדש באותו השם, הגרסאות והשינויים יופיעו רק בדף ההיסטוריה שלו.', 'undeleterevdel' => 'השחזור לא יבוצע אם הגרסה הנוכחית של הדף מחוקה בחלקה. במקרה כזה, עליכם לבטל את ההסתרה של הגרסאות המחוקות החדשות ביותר.', 'undeletehistorynoadmin' => 'דף זה נמחק. הסיבה למחיקה מוצגת בתקציר מטה, ביחד עם פרטים על המשתמשים שערכו את הדף לפני מחיקתו. הטקסט של גרסאות אלו זמין למפעילי מערכת בלבד.', 'undelete-revision' => 'גרסה שנמחקה מהדף $1 (מ־$2) מאת $3:',