Skip to content

Commit

Permalink
updated Smarty to v.3.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Sep 3, 2012
1 parent cd2c4f4 commit 27c244f
Show file tree
Hide file tree
Showing 46 changed files with 5,277 additions and 5,043 deletions.
13 changes: 10 additions & 3 deletions libraries/smarty/Smarty.class.php
Expand Up @@ -2,7 +2,7 @@
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty.class.php
* SVN: $Id$
* SVN: $Id: Smarty.class.php 4614 2012-05-24 15:13:19Z rodneyrehm $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand All @@ -28,7 +28,7 @@
* @author Uwe Tews
* @author Rodney Rehm
* @package Smarty
* @version 3.1.8
* @version 3.1-DEV
*/

/**
Expand Down Expand Up @@ -113,7 +113,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
/**
* smarty version
*/
const SMARTY_VERSION = 'Smarty-3.1.8';
const SMARTY_VERSION = 'Smarty-3.1.11';

/**
* define variable scopes
Expand Down Expand Up @@ -190,6 +190,10 @@ class Smarty extends Smarty_Internal_TemplateBase {
*/
public static $_UTF8_MODIFIER = 'u';

/**
* Flag denoting if operating system is windows
*/
public static $_IS_WINDOWS = false;

/**#@+
* variables
Expand Down Expand Up @@ -1464,6 +1468,9 @@ public static function unmuteExpectedErrors()
}
}

// Check if we're running on windows
Smarty::$_IS_WINDOWS = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';

// let PCRE (preg_*) treat strings as ISO-8859-1 if we're not dealing with UTF-8
if (Smarty::$_CHARSET !== 'UTF-8') {
Smarty::$_UTF8_MODIFIER = '';
Expand Down

0 comments on commit 27c244f

Please sign in to comment.