Permalink
Browse files

Verificar si es subpágina de la raíz

  • Loading branch information...
MarioFinale committed Feb 18, 2018
1 parent 25c60f4 commit 800dc6df9cb872a53c7a97a4af93d322c64a40e7
Showing with 3 additions and 7 deletions.
  1. +3 −7 GrillitusArchive.vb
@@ -298,13 +298,9 @@ Namespace WikiBot
Return False
End If
'Verificar si la página de archivado es una subpágina de la principal (solo para espacios de nombre 1,3,10,14,101,105)
Dim contentNamespaces As Integer() = {1, 3, 10, 14, 101, 105}
If contentNamespaces.Contains(PageToArchive.PageNamespace) Then
If Not ArchPage.Title.Contains(PageToArchive.Title) Then
Log("Archive: The page " & ArchPage.Title & " is not a subpage of " & PageToArchive.Title & " aborting.", "LOCAL", BOTName)
Return False
End If
'Verificar si la página de archivado es una subpágina de la raiz
If Not ArchPage.Title.Contains(PageToArchive.RootPage) Then
Log("Archive: The page " & ArchPage.Title & " is not a subpage of " & PageToArchive.Title & " aborting.", "LOCAL", BOTName)
End If
'Anadir los hilos al texto

0 comments on commit 800dc6d

Please sign in to comment.