diff -r c96a9b56f16c -r fdd6b9dd42c3 install.php
--- a/install.php Fri Jun 22 10:16:14 2007 -0400
+++ b/install.php Fri Jun 22 10:31:59 2007 -0400
@@ -51,7 +51,11 @@
define('ENANO_ROOT', dirname($filename));
-function is_page($p) { return true; }
+function is_page($p)
+{
+ return true;
+}
+
require('includes/wikiformat.php');
require('includes/constants.php');
require('includes/rijndael.php');
@@ -59,26 +63,41 @@
//die('Key size: ' . AES_BITS . '
Block size: ' . AES_BLOCKSIZE);
-if(!function_exists('wikiFormat')) {
-function wikiFormat($message, $filter_links = true) {
- $wiki = & Text_Wiki::singleton('Mediawiki');
- $wiki->setRenderConf('Xhtml', 'code', 'css_filename', 'codefilename');
- $wiki->setRenderConf('Xhtml', 'wikilink', 'view_url', contentPath);
- $result = $wiki->transform($message, 'Xhtml');
-
- // HTML fixes
- $result = preg_replace('#
([\s]*?)<\/p>#is', '', $result);
- $result = preg_replace('#
([\s]*?)