cvs: pear /Template_PHPLIB Template_PHPLIB.php
| From: | Martin Jansen | Date: | Wed, 05 Sep 2001 12:28:30 +0000 |
| Subject: | cvs: pear /Template_PHPLIB Template_PHPLIB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-799@lists.php.net to get a copy of this message | ||
mj Wed Sep 5 08:28:30 2001 EDT
Modified files:
/pear/Template_PHPLIB Template_PHPLIB.php
Log:
* improved PEAR conformance
Index: pear/Template_PHPLIB/Template_PHPLIB.php
diff -u pear/Template_PHPLIB/Template_PHPLIB.php:1.1 pear/Template_PHPLIB/Template_PHPLIB.php:1.2
--- pear/Template_PHPLIB/Template_PHPLIB.php:1.1 Tue Sep 4 19:30:34 2001
+++ pear/Template_PHPLIB/Template_PHPLIB.php Wed Sep 5 08:28:30 2001
@@ -17,7 +17,7 @@
// | Martin Jansen <mj@php.net> (PEAR conformance) |
// +----------------------------------------------------------------------+
//
-// $Id: Template_PHPLIB.php,v 1.1 2001/09/04 23:30:34 mj Exp $
+// $Id: Template_PHPLIB.php,v 1.2 2001/09/05 12:28:30 mj Exp $
//
require_once "PEAR.php";
@@ -167,7 +167,7 @@
} else {
reset($handle);
- while(list($h, $f) = each($handle)) {
+ while (list($h, $f) = each($handle)) {
$this->file[$h] = $this->_filename($f);
}
}
@@ -234,7 +234,7 @@
} else {
reset($varname);
- while(list($k, $v) = each($varname)) {
+ while (list($k, $v) = each($varname)) {
if (!empty($k))
if ($this->debug) print "array: set *$k* to *$v*<br>\n";
@@ -304,7 +304,7 @@
} else {
reset($handle);
- while(list($i, $h) = each($handle)) {
+ while (list($i, $h) = each($handle)) {
$str = $this->subst($h);
$this->setVar($target, $str);
}
@@ -339,7 +339,7 @@
{
reset($this->_varKeys);
- while(list($k, $v) = each($this->_varKeys)) {
+ while (list($k, $v) = each($this->_varKeys)) {
$result[$k] = $this->_varVals[$k];
}
@@ -360,7 +360,7 @@
} else {
reset($varname);
- while(list($k, $v) = each($varname)) {
+ while (list($k, $v) = each($varname)) {
$result[$k] = $this->_varVals[$k];
}
@@ -389,7 +389,7 @@
}
reset($m);
- while(list($k, $v) = each($m)) {
+ while (list($k, $v) = each($m)) {
if (!isset($this->_varKeys[$v])) {
$result[$v] = $v;
}