[xoops-cvslog 6026] CVS update: xoops2jp/html/include

アーカイブの一覧に戻る

NobuNobu nobun****@users*****
2006年 12月 9日 (土) 23:09:46 JST


Index: xoops2jp/html/include/xoopscodes.php
diff -u xoops2jp/html/include/xoopscodes.php:1.2.8.1 xoops2jp/html/include/xoopscodes.php:1.2.8.1.2.1
--- xoops2jp/html/include/xoopscodes.php:1.2.8.1	Wed Oct 19 02:20:06 2005
+++ xoops2jp/html/include/xoopscodes.php	Sat Dec  9 23:09:46 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: xoopscodes.php,v 1.2.8.1 2005/10/18 17:20:06 minahito Exp $
+// $Id: xoopscodes.php,v 1.2.8.1.2.1 2006/12/09 14:09:46 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -81,13 +81,13 @@
 function xoopsSmilies($textarea_id)
 {
     $myts =& MyTextSanitizer::getInstance();
-    $smiles =& $myts->getSmileys();
-    if (empty($smileys)) {
+    $smiles = $myts->getSmileys();
+    if (empty($smiles)) {
         $db =& Database::getInstance();
         if ($result = $db->query('SELECT * FROM '.$db->prefix('smiles').' WHERE display=1')) {
-            while ($smiles = $db->fetchArray($result)) {
+            while ($smile = $db->fetchArray($result)) {
             //hack smilies move for the smilies !!
-                echo "<img src='".XOOPS_UPLOAD_URL."/".htmlspecialchars($smiles['smile_url'])."' border='0' onmouseover='style.cursor=\"hand\"' alt='' onclick='xoopsCodeSmilie(\"".$textarea_id."\", \" ".$smiles['code']." \");' />";
+                echo "<img src='".XOOPS_UPLOAD_URL."/".htmlspecialchars($smile['smile_url'])."' border='0' onmouseover='style.cursor=\"hand\"' alt='' onclick='xoopsCodeSmilie(\"".$textarea_id."\", \" ".$smile['code']." \");' />";
             //fin du hack
             }
         }
@@ -96,7 +96,7 @@
         for ($i = 0; $i < $count; $i++) {
             if ($smiles[$i]['display'] == 1) {
             //hack bis
-                echo "<img src='".XOOPS_UPLOAD_URL."/".$myts->oopsHtmlSpecialChars($smiles['smile_url'])."' border='0' alt='' onclick='xoopsCodeSmilie(\"".$textarea_id."\", \" ".$smiles[$i]['code']." \");' onmouseover='style.cursor=\"hand\"' />";
+                echo "<img src='".XOOPS_UPLOAD_URL."/".htmlspecialchars($smiles[$i]['smile_url'])."' border='0' onmouseover='style.cursor=\"hand\"' alt='' onclick='xoopsCodeSmilie(\"".$textarea_id."\", \" ".$smiles[$i]['code']." \");' />";
             //fin du hack
             }
         }


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る