* Fixing a wrong count of succeeding file undeletions when private files are undelete...
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 29 Aug 2008 13:17:12 +0000 (13:17 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 29 Aug 2008 13:17:12 +0000 (13:17 +0000)
* Removing an outdated note in Special:Undelete: Restrictions on file revisions do not seem to be lost upon restoration.

includes/filerepo/LocalFile.php
languages/messages/MessagesEn.php
languages/messages/MessagesHe.php

index a7404f7..63ce035 100644 (file)
@@ -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;
index 6deb21c..f2e6101 100644 (file)
@@ -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.
index bcb0e09..0a2c9f1 100644 (file)
@@ -1946,7 +1946,8 @@ $NEWPAGE
 'undelete-fieldset-title'      => 'שחזור גרסאות',
 'undeleteextrahelp'            => 'לשחזור הדף כולו, אל תסמנו אף תיבת סימון ולחצו על "שחזור". לשחזור של גרסאות מסוימות בלבד, סמנו את תיבות הסימון של הגרסאות הללו, ולחצו על "שחזור". לחיצה על "איפוס" תנקה את התקציר, ואת כל תיבות הסימון.',
 'undeleterevisions'            => '{{PLURAL:$1|גרסה אחת נשמרה|$1 גרסאות נשמרו}} בארכיון',
-'undeletehistory'              => 'אם תשחזרו את הדף, כל הגרסאות תשוחזרנה להיסטוריית השינויים שלו. אם כבר יש דף חדש באותו השם, הגרסאות והשינויים יופיעו רק בדף ההיסטוריה שלו. בנוסף, הגבלות המוטלות על גרסאות קבצים נמחקות במהלך השחזור.',
+'undeletehistory'              => 'אם תשחזרו את הדף, כל הגרסאות תשוחזרנה להיסטוריית השינויים שלו.
+אם יש כבר דף חדש באותו השם, הגרסאות והשינויים יופיעו רק בדף ההיסטוריה שלו.',
 'undeleterevdel'               => 'השחזור לא יבוצע אם הגרסה הנוכחית של הדף מחוקה בחלקה. במקרה כזה, עליכם לבטל את ההסתרה של הגרסאות המחוקות החדשות ביותר.',
 'undeletehistorynoadmin'       => 'דף זה נמחק. הסיבה למחיקה מוצגת בתקציר מטה, ביחד עם פרטים על המשתמשים שערכו את הדף לפני מחיקתו. הטקסט של גרסאות אלו זמין למפעילי מערכת בלבד.',
 'undelete-revision'            => 'גרסה שנמחקה מהדף $1 (מ־$2) מאת $3:',