diff options
| author | spiderr <spider@viovio.com> | 2013-04-08 13:59:16 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-08 13:59:16 -0400 |
| commit | a9f8f73abdb47476456a9f822f5abac21cb79c71 (patch) | |
| tree | 33ad73e081f2b9ec0723bc7c0321543be3b40853 | |
| parent | 0d1bcad06b58d9df01774f270c8e44e9c41452fb (diff) | |
| download | themes-a9f8f73abdb47476456a9f822f5abac21cb79c71.tar.gz themes-a9f8f73abdb47476456a9f822f5abac21cb79c71.tar.bz2 themes-a9f8f73abdb47476456a9f822f5abac21cb79c71.zip | |
fix template override
| -rw-r--r-- | smartyplugins/resource.bitpackage.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/smartyplugins/resource.bitpackage.php b/smartyplugins/resource.bitpackage.php index 82711e1..fc06252 100644 --- a/smartyplugins/resource.bitpackage.php +++ b/smartyplugins/resource.bitpackage.php @@ -15,14 +15,16 @@ class Smarty_Resource_Bitpackage extends Smarty_Resource_Custom { protected function fetch ( $pTplName, &$pTplSource, &$pTplTime ) { $resources = $this->getTplLocations( $pTplName ); - foreach( $resources as $resource ) { + + foreach( $resources as $location => $resource ) { if( file_exists( $resource )) { $pTplSource = file_get_contents( $resource ); $pTplTime = filemtime( $resource ); + return; } } } - +/* protected function fetchTimestamp( $pTplName ) { $ret = FALSE; foreach( $this->getTplLocations( $pTplName ) as $resource ) { @@ -32,7 +34,7 @@ class Smarty_Resource_Bitpackage extends Smarty_Resource_Custom { } return $ret; } - +*/ private function getTplLocations( $pTplName ) { global $gBitThemes, $gNoForceStyle; @@ -72,4 +74,3 @@ class Smarty_Resource_Bitpackage extends Smarty_Resource_Custom { } } -?> |
