Changeset 8897
- Timestamp:
- Jan 25, 2011, 9:11:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_db_integrity/check_db.php
r7342 r8897 46 46 array(OLD_PERMALINKS_TABLE, 'cat_id'), 47 47 array(USER_ACCESS_TABLE, 'cat_id'), 48 array(WAITING_TABLE, 'storage_category_id'),49 48 array(USER_CACHE_CATEGORIES_TABLE, 'cat_id'), 50 49 ); … … 133 132 $template->append('reference_tests', $tpl_var); 134 133 135 // uploadable virtual cats136 $tpl_var = array(137 'ID' => 'uploadable_virtual_cats',138 'LABEL' => l10n('Uploadable virtual cats'),139 'CHECKED' => isset($_POST['uploadable_virtual_cats']) ? 'checked="checked"' : $default_checked,140 'COUNT' => 1,141 );142 if (isset($_POST['uploadable_virtual_cats']))143 {144 $query = '145 SELECT c.id, c.name146 FROM '.CATEGORIES_TABLE.' c147 WHERE c.dir IS NULL AND uploadable="true"';148 $result = pwg_query($query);149 $tpl_var['result'] = mysql_num_rows($result);150 $i=0;151 while ($row=mysql_fetch_assoc($result) and $i<=50 )152 {153 $tpl_var['errors'][] = $row['id'].' ('.$row['name'].') is uploadable';154 $i++;155 }156 }157 $template->append('reference_tests', $tpl_var);158 134 159 135 $template->set_filename('check', dirname(__FILE__).'/check_db.tpl');
Note: See TracChangeset
for help on using the changeset viewer.