phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] bookmarks/inc/class.bo.inc.php, 1.1.2.10


From: nomail
Subject: [Phpgroupware-cvs] bookmarks/inc/class.bo.inc.php, 1.1.2.10
Date: Sat, 6 Nov 2004 17:13:48 +0100

Update of /bookmarks/inc
Modified Files:
        Branch: Version-0_9_16-branch
          class.bo.inc.php

date: 2004/11/06 16:13:48;  author: powerstat;  state: Exp;  lines: +14 -14

Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: bookmarks/inc/class.bo.inc.php
diff -u bookmarks/inc/class.bo.inc.php:1.1.2.9 
bookmarks/inc/class.bo.inc.php:1.1.2.10
--- bookmarks/inc/class.bo.inc.php:1.1.2.9      Wed Feb 11 05:46:41 2004
+++ bookmarks/inc/class.bo.inc.php      Sat Nov  6 16:13:48 2004
@@ -165,7 +165,7 @@
                        {
                                if ($this->so->exists($values['url']))
                                {
-                                       $this->error_msg .= sprintf('<br>URL 
<B>%s</B> already exists!', $values['url']);
+                                       $this->error_msg .= sprintf('<br />URL 
<B>%s</B> already exists!', $values['url']);
                                        return False;
                                }
                                $bm_id = $this->so->add($values);
@@ -223,19 +223,19 @@
                        $result = True;
                        if (! $values['name'])
                        {
-                               $this->error_msg .= '<br>' . lang('Name is 
required');
+                               $this->error_msg .= '<br />' . lang('Name is 
required');
                                $result = False;
                        }
 
                        if (! $values['category'])
                        {
-                               $this->error_msg .= '<br>' . lang('You must 
select a category');
+                               $this->error_msg .= '<br />' . lang('You must 
select a category');
                                $result = False;
                        }
 
                        if (! $values['url'] || $values['url'] == 'http://')
                        {
-                               $this->error_msg .= '<br>' . lang('URL is 
required.');
+                               $this->error_msg .= '<br />' . lang('URL is 
required.');
                                $result = False;
                        }
                        // does the admin want us to check URL format
@@ -243,9 +243,9 @@
                        {
                                if (! $this->validate->is_url($values['url']))
                                {
-                                       $this->error_msg = '<br>URL invalid. 
Format must be <strong>http://</strong> or 
+                                       $this->error_msg = '<br />URL invalid. 
Format must be <strong>http://</strong> or 
                             <strong>ftp://</strong> followed by a valid 
hostname and 
-                            URL!<br><small>' .  $this->validate->ERROR . 
'</small>';
+                            URL!<br /><small>' .  $this->validate->ERROR . 
'</small>';
                                        $result = False;
                                }
                        }
@@ -283,7 +283,7 @@
 
                function get_category($catname,$parent)
                {
-                       $this->_debug('<br>Testing for category: ' . $catname);
+                       $this->_debug('<br />Testing for category: ' . 
$catname);
      
                        $catid = $this->cat_exists($catname,$parent);
                        if ($catid)
@@ -307,9 +307,9 @@
                function import($bkfile,$parent)
                {
                        $this->_debug('<p><b>DEBUG OUTPUT:</b>');
-                       $this->_debug('<br>file_name: ' . $bkfile['name']);
-                       $this->_debug('<br>file_size: ' . $bkfile['size']);
-                       $this->_debug('<br>file_type: ' . $bkfile['type'] . 
'<p><b>URLs:</b>');
+                       $this->_debug('<br />file_name: ' . $bkfile['name']);
+                       $this->_debug('<br />file_size: ' . $bkfile['size']);
+                       $this->_debug('<br />file_type: ' . $bkfile['type'] . 
'<p><b>URLs:</b>');
                        $this->_debug('<table border="1" width="100%">');
                        $this->_debug('<tr><td>cat id</td> <td>sub id</td> 
<td>name</td> <td>url</td> <td>add date</td> <td>change date</td> <td>vist 
date</td></tr>');
 
@@ -317,7 +317,7 @@
                        //                      if ($bkfile['error'])
                        if (!$bkfile['name'])
                        {
-                               $this->error_msg .= '<br>'.lang('Netscape 
bookmark filename is required!');
+                               $this->error_msg .= '<br />'.lang('Netscape 
bookmark filename is required!');
                        }
                        else
                        {
@@ -388,11 +388,11 @@
                                        }
                                        @fclose($fd);
                                        $this->_debug('</table>');
-                                       $this->msg = '<br>'.lang("%1 bookmarks 
imported from %2 successfully.", $inserts, $bkfile['name']);
+                                       $this->msg = '<br />'.lang("%1 
bookmarks imported from %2 successfully.", $inserts, $bkfile['name']);
                                }
                                else
                                {
-                                       $this->error_msg .= '<br>'.lang('Unable 
to open temp file %1 for import.',$bkfile['name']);
+                                       $this->error_msg .= '<br 
/>'.lang('Unable to open temp file %1 for import.',$bkfile['name']);
                                }
                        }
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]