finishing moving of code from inex.php to includes/Wiki.php