Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

cvs: smarty /libs Smarty_Compiler.class.php: msg#00032

php.cvs.smarty

Subject: cvs: smarty /libs Smarty_Compiler.class.php

messju Fri Nov 21 07:39:51 2003 EDT

Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
remove two E_NOTICES


Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.298
smarty/libs/Smarty_Compiler.class.php:1.299
--- smarty/libs/Smarty_Compiler.class.php:1.298 Thu Nov 20 10:26:45 2003
+++ smarty/libs/Smarty_Compiler.class.php Fri Nov 21 07:39:50 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/

-/* $Id: Smarty_Compiler.class.php,v 1.298 2003/11/20 15:26:45 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.299 2003/11/21 12:39:50 messju Exp $ */

/**
* Template compiling class
@@ -922,6 +922,7 @@
$assign_var = (empty($attrs['assign'])) ? '' :
$this->_dequote($attrs['assign']);
$once_var = (empty($attrs['once']) || $attrs['once']=='false') ?
'false' : 'true';

+ $arg_list = array();
foreach($attrs as $arg_name => $arg_value) {
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name !=
'assign') {
if(is_bool($arg_value))
@@ -930,7 +931,7 @@
}
}

- $_params = "array('smarty_file' => " . $attrs['file'] . ",
'smarty_assign' => '$assign_var', 'smarty_once' => $once_var,
'smarty_include_vars' => array(".implode(',', (array)$arg_list)."))";
+ $_params = "array('smarty_file' => " . $attrs['file'] . ",
'smarty_assign' => '$assign_var', 'smarty_once' => $once_var,
'smarty_include_vars' => array(".implode(',', $arg_list)."))";

return "<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR .
'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params,
\$this); ?>" . $this->_additional_newline;
}
@@ -1587,6 +1588,7 @@
if(count($_math_vars) > 1) {
$_first_var = "";
$_complete_var = "";
+ $_output = "";
// simple check if there is any math, to stop recursion (due to
modifiers with "xx % yy" as parameter)
foreach($_math_vars as $_k => $_math_var) {
$_math_var = $_math_vars[$_k];

--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation