aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-10-09 23:14:43 +0000
committerrvelices <rv-github@modusoptimus.com>2008-10-09 23:14:43 +0000
commit11df0cb50241fa098d492ce27e6b01b179f95f6b (patch)
treeafa4aa54b58496a4be9bf05deb6335e50266ae7d /include
parent16df0a59dcd3577da7bac2c1551ced1d793b4310 (diff)
- removed unused var from template
- removed 2 unused rules from public content.css - index.php improvement (as in picture) - the log is done after sending first output to client git-svn-id: http://piwigo.org/svn/trunk@2699 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 355018a27..0b4b3a404 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -22,7 +22,7 @@
// +-----------------------------------------------------------------------+
-require_once 'smarty/libs/Smarty.class.php';
+require_once(PHPWG_ROOT_PATH.'include/smarty/libs/Smarty.class.php');
// migrate lang:XXX
// sed "s/{lang:\([^}]\+\)}/{\'\1\'|@translate}/g" my_template.tpl
@@ -173,7 +173,7 @@ class Template {
}
/**
- * Sets template extentions filenames for handles.
+ * Sets template extentions filenames for handles.
* $filename_array should be an hash of filename => array( handle, param) or filename => handle
*/
function set_extents($filename_array, $dir='', $overwrite=true)
@@ -329,8 +329,6 @@ class Template {
/** flushes the output */
function p()
{
- $start = get_moment();
-
$this->flush();
if ($this->smarty->debugging)
@@ -338,7 +336,6 @@ class Template {
global $t2;
$this->smarty->assign(
array(
- 'AAAA_DEBUG_OUTPUT_TIME__' => get_elapsed_time($start, get_moment()),
'AAAA_DEBUG_TOTAL_TIME__' => get_elapsed_time($t2, get_moment())
)
);