From 05ad53f5ab99ffe6094b71bf9914e4f1d2f26019 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 20 Mar 2003 23:41:07 +0000 Subject: [PATCH] fixed two bugs... bye bye easter-egg (i think it is time to invent a new one. ;)). git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3696 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 2 ++ phpBB/includes/bbcode.php | 4 ++-- phpBB/templates/subSilver/posting_body.tpl | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index e62833ed13..067db48e3a 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -98,6 +98,8 @@ p,ul,td {font-size:10pt;}
  • Deleted doubled 'U_MEMBERLIST' assignment from page_header.php
  • Fixed wrong display of Signature Checkbox while editing Private Message
  • Fixed disappearing post text if emoticon was inserted directly after pressing a BBCode button
  • +
  • Display correct alt-tag for smilies within postings - emoticon instead of filename
  • +
  • Prevented the ability to apply BBCode to website contents - we will find another EasterEgg
  • 1.ii. Changes since 2.0.3

    diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index 20ef81f0a6..bd1d3db10c 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -744,7 +744,7 @@ function smilies_pass($message) global $db, $board_config; $orig = $repl = array(); - $sql = 'SELECT code, smile_url FROM ' . SMILIES_TABLE; + $sql = 'SELECT * FROM ' . SMILIES_TABLE; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain smilies data", "", __LINE__, __FILE__, $sql); @@ -759,7 +759,7 @@ function smilies_pass($message) for ($i = 0; $i < count($smilies); $i++) { $orig[] = "/(?<=.\W|\W.|^\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/"; - $repl[] = '' . $smilies[$i]['smile_url'] . ''; + $repl[] = '' . $smilies[$i]['emoticon'] . ''; } } diff --git a/phpBB/templates/subSilver/posting_body.tpl b/phpBB/templates/subSilver/posting_body.tpl index a89e160783..e8700a5e7d 100644 --- a/phpBB/templates/subSilver/posting_body.tpl +++ b/phpBB/templates/subSilver/posting_body.tpl @@ -135,6 +135,7 @@ function bbfontstyle(bbopen, bbclose) { function bbstyle(bbnumber) { var txtarea = document.post.message; + txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0;