From 5d5f4998ecba0bc112074f36f44a459bfeb62613 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 27 Mar 2006 10:57:36 +0000 Subject: [PATCH] fix turkish include, fix JS markup --- docs/NEWS | 6 +++++- include/admin/importers/movabletype.inc.php | 4 ++++ include/functions_comments.inc.php | 3 ++- include/functions_entries_admin.inc.php | 18 +++++++++--------- lang/UTF-8/serendipity_lang_tr.inc.php | 2 +- lang/serendipity_lang_tr.inc.php | 2 +- 6 files changed, 22 insertions(+), 13 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 923e181..d0c173e 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -39,9 +39,13 @@ Version 1.1-alpha1() * Removed config option "XHTML11 compliance" and enabled by default now (garvinhicking) -Version 1.0-beta2 () +Version 1.0-beta2 (March 13th, 2006) ------------------------------------------------------------------------ + * Fix WYSIWYG javascript referencing so that plugins can access their + objects (like emoticonchooser). Also replace with and + with . (Jay Bertrandt) + * Fixed chief-editor not being able to create editors (garvinhicking) * Added turkish language by Ahmet Usal diff --git a/include/admin/importers/movabletype.inc.php b/include/admin/importers/movabletype.inc.php index 7acfc4d..3327e62 100644 --- a/include/admin/importers/movabletype.inc.php +++ b/include/admin/importers/movabletype.inc.php @@ -177,11 +177,13 @@ class Serendipity_Import_MovableType extends Serendipity_Import { case 'PRIMARY CATEGORY': case 'CATEGORY': $categories = explode("\0", $data); + echo '
' . print_r($this->categories, true) . '
'; foreach($categories AS $data) { $data = trim($data); $cat_found = false; if (is_array($this->categories)) { for ( $y=0 ; $ycategories) ; $y++ ) { + echo '"' . $this->categories[$y]['category_name'] . '" == "' . $data . '"
'; if ( $this->categories[$y]['category_name'] == $data ) { $cat_found = true; break; @@ -423,6 +425,8 @@ class Serendipity_Import_MovableType extends Serendipity_Import { if ( !sizeof($tasks) || $force == true ) { serendipity_db_begin_transaction(); foreach ($entries as $entry) { + echo '
' . printR_($entry, true) . '

'; + continue; if (empty($entry['authorid'])) { $entry['authorid'] = $serendipity['authorid']; $entry['author'] = $serendipity['realname']; diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index 1bb05b9..11bc34f 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -257,7 +257,8 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace if (isset($comment['no_email']) && $comment['no_email']) { $comment['email'] = false; } elseif (!empty($comment['email'])) { - $comment['email'] = htmlspecialchars(str_replace('@', '[at]', $comment['email'])); + $comment['clear_email'] = $comment['email']; + $comment['email'] = htmlspecialchars(str_replace('@', '[at]', $comment['email'])); } $comment['body'] = $comment['comment']; diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 256d058..7d5d433 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -197,7 +197,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr /* Hack to make sure that when the single dropdown is shown, don't have multiple selections */ last = 0; - + for (i=0; i < el.options.length; i++) { if (el.options[i].selected == true) { selected++; @@ -221,7 +221,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr break; } } - + el.selectedIndex = null; if (last > 0) { el.selectedIndex = last; @@ -288,7 +288,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr ?> return true; } - + selector_toggle['categoryselector'] = ''; addLoadEvent(showItem); @@ -305,8 +305,8 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr if (!$serendipity['wysiwyg'] && eregi($serendipity['EditorBrowsers'], $_SERVER['HTTP_USER_AGENT']) ) { ?>