Skip to content

Commit

Permalink
Fix path within modifier, delete path to none existing plugin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
olafgleba committed Aug 6, 2012
1 parent c9e040b commit 56dda58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
@@ -1,11 +1,7 @@
<?php

foreach ($smarty->plugins_dir as $value) {
$filepath = $value ."/shared.make_timestamp.php";
if (file_exists($filepath)) {
require_once $filepath;
}
}
// Reference to origin smarty plugin to include
require_once SMARTY_DIR.'plugins/shared.make_timestamp.php';

function smarty_modifier_date_atom($string)
{
Expand Down
@@ -1,11 +1,7 @@
<?php

foreach ($smarty->plugins_dir as $value) {
$filepath = $value ."/shared.make_timestamp.php";
if (file_exists($filepath)) {
require_once $filepath;
}
}
// Reference to origin smarty plugin to include
require_once SMARTY_DIR.'plugins/shared.make_timestamp.php';

function smarty_modifier_date_rss20($string)
{
Expand Down
1 change: 0 additions & 1 deletion welcompose/setup/smarty.inc.php
Expand Up @@ -51,7 +51,6 @@
$smarty->setCompileDir(SMARTY_TPL_DIR.DIRECTORY_SEPARATOR.'compiled');
$smarty->setCacheDir(SMARTY_TPL_DIR.DIRECTORY_SEPARATOR.'cache');
$smarty->setPluginsDir(array(
SMARTY_DIR.DIRECTORY_SEPARATOR.'my_plugins',
SMARTY_DIR.DIRECTORY_SEPARATOR.'plugins',
SMARTY_DIR.DIRECTORY_SEPARATOR.'software_plugins'
)
Expand Down
1 change: 0 additions & 1 deletion welcompose/update/smarty.inc.php
Expand Up @@ -51,7 +51,6 @@
$smarty->setCompileDir(SMARTY_TPL_DIR.DIRECTORY_SEPARATOR.'compiled');
$smarty->setCacheDir(SMARTY_TPL_DIR.DIRECTORY_SEPARATOR.'cache');
$smarty->setPluginsDir(array(
SMARTY_DIR.DIRECTORY_SEPARATOR.'my_plugins',
SMARTY_DIR.DIRECTORY_SEPARATOR.'plugins',
SMARTY_DIR.DIRECTORY_SEPARATOR.'software_plugins'
)
Expand Down

0 comments on commit 56dda58

Please sign in to comment.