cvs: docweb /include lib_general.inc.php
| From: | Sean Coates | Date: | Sat, 22 Jan 2005 00:07:59 +0000 |
| Subject: | cvs: docweb /include lib_general.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-521@lists.php.net to get a copy of this message | ||
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 <goba@php.net> |
| Sean Coates <sean@php.net> |
+----------------------------------------------------------------------+
-$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();