summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-02 22:18:22 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-02 22:18:22 +0100
commitdfa6b749baf95856601ea476e58f884cfb453055 (patch)
treea91f7ebabb9c684996824fa1a97f4e266e73be83 /lib/template.php
parentede34c17dd04fcc13ce7870947fc66aba1ece274 (diff)
downloadnextcloud-server-dfa6b749baf95856601ea476e58f884cfb453055.tar.gz
nextcloud-server-dfa6b749baf95856601ea476e58f884cfb453055.zip
Introducing OC_HELPER for small helper functions; making setup of filesystem optional
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