cvs: phd(PHD_0_4) /formats xhtml.php

From: Date: Thu, 07 May 2009 17:56:54 +0000
Subject: cvs: phd(PHD_0_4) /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3978@lists.php.net to get a copy of this message
bjori Thu May 7 17:56:54 2009 UTC Modified files: (Branch: PHD_0_4) /phd/formats xhtml.php Log: Kill E_NOTICE when no class attribute is defined http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.29&r2=1.67.2.2.2.30&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.67.2.2.2.29 phd/formats/xhtml.php:1.67.2.2.2.30 --- phd/formats/xhtml.php:1.67.2.2.2.29 Tue May 5 19:10:34 2009 +++ phd/formats/xhtml.php Thu May 7 17:56:53 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.67.2.2.2.29 2009/05/05 19:10:34 cweiske Exp $ */ +/* $Id: xhtml.php,v 1.67.2.2.2.30 2009/05/07 17:56:53 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -1193,7 +1193,12 @@ if ($props['empty']) { return ''; } - $class = $attrs['class']; + + $class = 'starttag'; + if (isset($attrs['class'])) { + $class = $attrs['class']; + } + if (!isset($arFixes[$class])) { trigger_error('Unknown tag class "' . $class . '"', E_USER_WARNING); $class = 'starttag';

« previous php.doc.cvs (#3978) next »