# HG changeset patch
# User Dan
# Date 1182522719 14400
# Node ID fdd6b9dd42c3d5d6d723a302aed88497aa3fb257
# Parent c96a9b56f16caaa858746b7c19dade5807e80f7b
Installer actually works now on dev servers; minor language change in template.php; code cleanliness fix in sessions.php
diff -r c96a9b56f16c -r fdd6b9dd42c3 includes/sessions.php
--- a/includes/sessions.php Fri Jun 22 10:16:14 2007 -0400
+++ b/includes/sessions.php Fri Jun 22 10:31:59 2007 -0400
@@ -1287,7 +1287,8 @@
* @param string $real_name Optional, defaults to ''.
*/
- function create_user($username, $password, $email, $real_name = '') {
+ function create_user($username, $password, $email, $real_name = '')
+ {
global $db, $session, $paths, $template, $plugins; // Common objects
// Initialize AES
diff -r c96a9b56f16c -r fdd6b9dd42c3 includes/template.php
--- a/includes/template.php Fri Jun 22 10:16:14 2007 -0400
+++ b/includes/template.php Fri Jun 22 10:31:59 2007 -0400
@@ -522,7 +522,7 @@
{
// label at start
$label = $this->makeParserText($tplvars['toolbar_label']);
- $label->assign_vars(array('TEXT' => 'password:'));
+ $label->assign_vars(array('TEXT' => 'page password:'));
$t0 = $label->run();
$menubtn->assign_vars(array(
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]*?)