cvs: docweb /include lib_general.inc.php

[email protected] ("Sean Coates")
Newsgroups php.doc.web
Message-ID <cvssean1106352479@cvsserver>
sean		Fri Jan 21 19:07:59 2005 EDT

  Modified files:              
    /docweb/include	lib_general.inc.php 
  Log:
  chopped h1 title (e.g. for: http://docweb.phpdoc.info/php/dochowto/chapter-maillist.php)
  
http://cvs.php.net/diff.php/docweb/include/lib_general.inc.php?r1=1.35&r2=1.36&ty=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.35 docweb/include/lib_general.inc.php:1.36
--- docweb/include/lib_general.inc.php:1.35	Fri Jan 21 12:35:44 2005
+++ docweb/include/lib_general.inc.php	Fri Jan 21 19:07:59 2005
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <[email protected]>                        |
 |                   Sean Coates <[email protected]>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.35 2005/01/21 17:35:44 vincent Exp $
+$Id: lib_general.inc.php,v 1.36 2005/01/22 00:07:59 sean Exp $
 */
 
 function is_translation($project, $language)
@@ -43,7 +43,8 @@
     $lang       = 'en'; //LANGC;
     $encoding   = 'UTF-8';
     $page_title = ($title ? $GLOBALS['Language']->get($title) . ' - ' : '') . $GLOBALS['Language']->get('docweb.common.title.default');
-    $page_h1    = ($title ? $GLOBALS['Language']->get($title) : $GLOBALS['Language']->get('docweb.common.title.default'));
+    $h1         = ($title ? $GLOBALS['Language']->get($title) : $GLOBALS['Language']->get('docweb.common.title.default'));
+    list($page_h1) = explode("\n", wordwrap($h1, 50, "...\n"));
 
     $languages = site_nav_langs();
     $projects  = site_nav_projects();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.