summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php
index 6415ab6a845..efa8dde8b9d 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -21,18 +21,20 @@
*
*/
+oc_include_once( "helper.php" );
+
/**
*
*/
function link_to( $app, $file ){
- return OC_UTIL::linkTo( $app, $file );
+ return OC_HELPER::linkTo( $app, $file );
}
/**
*
*/
function image_path( $app, $file ){
- return OC_UTIL::imagePath( $app, $file );
+ return OC_HELPER::imagePath( $app, $file );
}
class OC_TEMPLATE{
@@ -67,7 +69,7 @@ class OC_TEMPLATE{
public function append( $a, $b ){
if( array_key_exists( $a, $this->vars )){
- if( is_a( $this->vars[$a], "array" )){
+ if( is_array( $this->vars[$a] )){
$this->vars[$a][] = $b;
}
else