mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Fix for when plugins directory is not the default one.
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
* and end year values. (Monte)
|
* and end year values. (Monte)
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php';
|
||||||
function smarty_function_html_select_date($params, &$smarty)
|
function smarty_function_html_select_date($params, &$smarty)
|
||||||
{
|
{
|
||||||
/* Default values. */
|
/* Default values. */
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
* Purpose: Prints the dropdowns for time selection
|
* Purpose: Prints the dropdowns for time selection
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php';
|
||||||
function smarty_function_html_select_time($params, &$smarty)
|
function smarty_function_html_select_time($params, &$smarty)
|
||||||
{
|
{
|
||||||
/* Default values. */
|
/* Default values. */
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* Purpose: format datestamps via strftime
|
* Purpose: format datestamps via strftime
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
function smarty_modifier_date_format($string, $format="%b %e, %Y")
|
function smarty_modifier_date_format($string, $format="%b %e, %Y")
|
||||||
{
|
{
|
||||||
return strftime($format, smarty_make_timestamp($string));
|
return strftime($format, smarty_make_timestamp($string));
|
||||||
|
@@ -14,8 +14,8 @@
|
|||||||
* and end year values. (Monte)
|
* and end year values. (Monte)
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php';
|
||||||
function smarty_function_html_select_date($params, &$smarty)
|
function smarty_function_html_select_date($params, &$smarty)
|
||||||
{
|
{
|
||||||
/* Default values. */
|
/* Default values. */
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
* Purpose: Prints the dropdowns for time selection
|
* Purpose: Prints the dropdowns for time selection
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php';
|
||||||
function smarty_function_html_select_time($params, &$smarty)
|
function smarty_function_html_select_time($params, &$smarty)
|
||||||
{
|
{
|
||||||
/* Default values. */
|
/* Default values. */
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* Purpose: format datestamps via strftime
|
* Purpose: format datestamps via strftime
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once SMARTY_DIR . 'plugins/shared.make_timestamp.php';
|
require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php';
|
||||||
function smarty_modifier_date_format($string, $format="%b %e, %Y")
|
function smarty_modifier_date_format($string, $format="%b %e, %Y")
|
||||||
{
|
{
|
||||||
return strftime($format, smarty_make_timestamp($string));
|
return strftime($format, smarty_make_timestamp($string));
|
||||||
|
Reference in New Issue
Block a user