Project

General

Profile

« Previous | Next » 

Revision 118

Added by stefan over 18 years ago

Empty_trash now also works with sub-pages in the trash.

View differences:

trunk/wb/admin/pages/empty_trash.php
1 1
<?php
2 2

  
3
// $Id: empty_trash.php,v 1.2 2005/04/02 06:25:37 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
32 32

  
33 33
// Get page list from database
34 34
$database = new database();
35
$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' AND visibility = 'deleted' ORDER BY position ASC";
35
$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE visibility = 'deleted' ORDER BY level DESC";
36 36
$get_pages = $database->query($query);
37 37

  
38 38
// Insert values into main page list

Also available in: Unified diff