plugins/admin/PageManager.php
changeset 953 323c4cd1aa37
parent 898 c75754f5b1da
child 999 61d492c43e5f
equal deleted inserted replaced
952:d52dfa1f08da 953:323c4cd1aa37
   259                   // If we're going File -> other, remove files
   259                   // If we're going File -> other, remove files
   260                   if ( $namespace_db === 'File' )
   260                   if ( $namespace_db === 'File' )
   261                   {
   261                   {
   262                     PageUtils::delete_page_files($page_id);
   262                     PageUtils::delete_page_files($page_id);
   263                   }
   263                   }
   264                   
       
   265                   // update $paths with the new pathskey
       
   266                   $new_pathskey = $paths->nslist[$namespace_new] . $page_id_new;
       
   267                   $paths->pages[$new_pathskey] =& $paths->pages[$pathskey];
       
   268                 }
   264                 }
   269                 
   265                 
   270                 // Did we change the name of the page? If so, make PageProcessor log it
   266                 // Did we change the name of the page? If so, make PageProcessor log it
   271                 if ( $dataset_backup['name'] != $dataset['name'] )
   267                 if ( $dataset_backup['name'] != $dataset['name'] )
   272                 {
   268                 {