cvs: phd / build.php /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Thu, 04 Oct 2007 13:16:07 +0000 |
| Subject: | cvs: phd / build.php /themes/php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-141@lists.php.net to get a copy of this message | ||
bjori Thu Oct 4 13:16:07 2007 UTC
Modified files:
/phd build.php
/phd/themes/php phpdotnet.php
Log:
Make sure we are creating new chunk before we reset the examples count
(reported by Derick)
http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.31&r2=1.32&diff_format=u
Index: phd/build.php
diff -u phd/build.php:1.31 phd/build.php:1.32
--- phd/build.php:1.31 Tue Oct 2 14:37:41 2007
+++ phd/build.php Thu Oct 4 13:16:07 2007
@@ -1,6 +1,6 @@
#!@php_bin@
<?php
-/* $Id: build.php,v 1.31 2007/10/02 14:37:41 bjori Exp $ */
+/* $Id: build.php,v 1.32 2007/10/04 13:16:07 bjori Exp $ */
function err($no, $str, $file, $line) {
global $notify;
@@ -125,6 +125,7 @@
$attrs = $reader->getAttributes();
$props = array(
"empty" => $reader->isEmptyElement,
+ "isChunk" => $isChunk,
/* These two are not used at the moment */
"lang" => $reader->xmlLang,
"ns" => $reader->namespaceURI,
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.23&r2=1.24&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.23 phd/themes/php/phpdotnet.php:1.24
--- phd/themes/php/phpdotnet.php:1.23 Wed Oct 3 14:18:09 2007
+++ phd/themes/php/phpdotnet.php Thu Oct 4 13:16:07 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.23 2007/10/03 14:18:09 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.24 2007/10/04 13:16:07 bjori Exp $ */
class phpdotnet extends PhDHelper {
protected $elementmap = array(
@@ -228,7 +228,9 @@
if (isset($attrs[PhDReader::XMLNS_XML]["id"])) {
$this->CURRENT_ID = $attrs[PhDReader::XMLNS_XML]["id"];
}
- $this->tmp["chunk"] = array("examples" => 0);
+ if ($props["isChunk"]) {
+ $this->tmp["chunk"] = array("examples" => 0);
+ }
if (isset($props["lang"])) {
$this->lang = $props["lang"];
}
@@ -237,7 +239,9 @@
public function format_container_chunk($open, $name, $attrs, $props) {
$this->CURRENT_ID = $id = $attrs[PhDReader::XMLNS_XML]["id"];
if ($open) {
- $this->tmp["chunk"] = array("examples" => 0);
+ if ($props["isChunk"]) {
+ $this->tmp["chunk"] = array("examples" => 0);
+ }
if ($name != "reference") {
$chunks = PhDHelper::getChildren($id);
if (!count($chunks)) {