forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded to latest version of Smarty 2.6.9
- Loading branch information
thepurpleblob
committed
Apr 19, 2005
1 parent
f55a672
commit c38950b
Showing
49 changed files
with
676 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* @link http://smarty.php.net/ | ||
* @version 2.6.2 | ||
* @copyright Copyright: 2001-2004 ispi of Lincoln, Inc. | ||
* @version 2.6.9 | ||
* @copyright Copyright: 2001-2005 New Digital Group, Inc. | ||
* @author Andrei Zmievski <[email protected]> | ||
* @access public | ||
* @package Smarty | ||
|
@@ -240,7 +240,7 @@ function load_file($file_name, $prepend_path = true) | |
return false; | ||
} | ||
|
||
$contents = fread($fp, filesize($config_file)); | ||
$contents = ($size = filesize($config_file)) ? fread($fp, $size) : ''; | ||
fclose($fp); | ||
|
||
$this->_config_data[$config_file] = $this->parse_contents($contents); | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
/** | ||
* Smarty {cycle} function plugin | ||
* | ||
* Type: function<br /> | ||
* Name: cycle<br /> | ||
* Date: May 3, 2002<br /> | ||
* Purpose: cycle through given values<br /> | ||
* Type: function<br> | ||
* Name: cycle<br> | ||
* Date: May 3, 2002<br> | ||
* Purpose: cycle through given values<br> | ||
* Input: | ||
* - name = name of cycle (optional) | ||
* - values = comma separated list of values to cycle, | ||
|
@@ -23,16 +23,16 @@ | |
* - delimiter = the value delimiter, default is "," | ||
* - assign = boolean, assigns to template var instead of | ||
* printed. | ||
* | ||
* Examples:<br /> | ||
* | ||
* Examples:<br> | ||
* <pre> | ||
* {cycle values="#eeeeee,#d0d0d0d"} | ||
* {cycle name=row values="one,two,three" reset=true} | ||
* {cycle name=row} | ||
* </pre> | ||
* @link http://smarty.php.net/manual/en/language.function.cycle.php {cycle} | ||
* (Smarty online manual) | ||
* @author Monte Ohrt <monte@ispi.net> | ||
* @author Monte Ohrt <monte at ohrt dot com> | ||
* @author credit to Mark Priatel <[email protected]> | ||
* @author credit to Gerard <[email protected]> | ||
* @author credit to Jason Sweat <[email protected]> | ||
|
@@ -66,7 +66,7 @@ function smarty_function_cycle($params, &$smarty) | |
$cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ','; | ||
|
||
if(is_array($cycle_vars[$name]['values'])) { | ||
$cycle_array = $cycle_vars[$name]['values']; | ||
$cycle_array = $cycle_vars[$name]['values']; | ||
} else { | ||
$cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']); | ||
} | ||
|
@@ -88,7 +88,7 @@ function smarty_function_cycle($params, &$smarty) | |
|
||
if($advance) { | ||
if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) { | ||
$cycle_vars[$name]['index'] = 0; | ||
$cycle_vars[$name]['index'] = 0; | ||
} else { | ||
$cycle_vars[$name]['index']++; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.