fix a orphaned page when she is the home page

skala
Juan Carlos Raña 13 years ago
parent d5471c04da
commit b4cfe8acf7
  1. 5
      main/wiki/index.php

@ -1261,9 +1261,12 @@ if ($_GET['action']=='orphaned') {
$allpages=Database::query($sql);
while ($row=Database::fetch_array($allpages)) {
$row['linksto']= str_replace($row["reflink"], " ", trim($row["linksto"])); //remove self reference
$row['linksto']= str_replace($row["reflink"], " ", trim($row["linksto"])); //remove self reference
$refs = explode(" ", trim($row["linksto"]));
foreach ($refs as $ref_linked){
if ($ref_linked==str_replace(' ','_',get_lang('DefaultTitle'))) {
$ref_linked='index';
}
$array_refs_linked[]= $ref_linked;
}
}

Loading…
Cancel
Save