[geeklog-cvs] geeklog: Error display cosmetics

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Aug 28 11:08:53 EDT 2011


changeset 8363:99380169a8c6
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/99380169a8c6
user: Dirk Haun <dirk at haun-online.de>
date: Sun Jun 19 11:28:56 2011 +0200
description:
Error display cosmetics

diffstat:

 system/lib-story.php |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (28 lines):

diff -r abdc906961f4 -r 99380169a8c6 system/lib-story.php
--- a/system/lib-story.php	Sun Jun 19 11:22:10 2011 +0200
+++ b/system/lib-story.php	Sun Jun 19 11:28:56 2011 +0200
@@ -1558,15 +1558,16 @@
         if ($_CONF['maximagesperarticle'] > 0) {
             $errors = $story->insertImages();
             if (count($errors) > 0) {
-                $output = COM_siteHeader ('menu', $LANG24[54]);
-                $output .= COM_startBlock ($LANG24[54], '',
-                                COM_getBlockTemplate ('_msg_block', 'header'));
-                $output .= $LANG24[55] . '<p>';
-                for ($i = 1; $i <= count($errors); $i++) {
-                    $output .= current($errors) . '<br' . XHTML . '>';
-                    next($errors);
+                $output = COM_siteHeader('menu', $LANG24[54]);
+                $output .= COM_startBlock($LANG24[54], '',
+                                COM_getBlockTemplate('_msg_block', 'header'));
+                $output .= $LANG24[55] . LB . '<ul>' . LB;
+                foreach ($error as $err) {
+                    $output .= '<li>' . $err . '</li>' . LB;
                 }
-                $output .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+                $output .= '</ul>' . LB;
+                $output .= COM_endBlock(COM_getBlockTemplate('_msg_block',
+                                                             'footer'));
                 $output .= storyeditor($sid);
                 $output .= COM_siteFooter();
                 echo $output;



More information about the geeklog-cvs mailing list