diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 22:55:39 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 22:55:39 +0100 |
commit | 229c907a57a4a64730e7b58f59cb8f7f627bfaf3 (patch) | |
tree | 560c7cdae8b7a43898832b0989b7fb3b780501a8 /lib | |
parent | 40e51d13d2fd028fa13902b12814532d1de15f5a (diff) | |
download | nextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.tar.gz nextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.zip |
[core] From echo to p
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.php | 2 | ||||
-rw-r--r-- | lib/template.php | 6 | ||||
-rw-r--r-- | lib/templatelayout.php | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/setup.php b/lib/setup.php index 8f772e663e2..8814447f52f 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -851,7 +851,7 @@ class OC_Setup { 'http://doc.owncloud.org/server/5.0/admin_manual/installation.html'); $tmpl = new OC_Template('', 'error', 'guest'); - $tmpl->assign('errors', array(1 => array('error' => $error, 'hint' => $hint)), false); + $tmpl->assign('errors', array(1 => array('error' => $error, 'hint' => $hint))); $tmpl->printPage(); exit(); } diff --git a/lib/template.php b/lib/template.php index fcf18fee415..08ad5764ba1 100644 --- a/lib/template.php +++ b/lib/template.php @@ -482,7 +482,7 @@ class OC_Template{ public static function printUserPage( $application, $name, $parameters = array() ) { $content = new OC_Template( $application, $name, "user" ); foreach( $parameters as $key => $value ) { - $content->assign( $key, $value, false ); + $content->assign( $key, $value ); } print $content->printPage(); } @@ -497,7 +497,7 @@ class OC_Template{ public static function printAdminPage( $application, $name, $parameters = array() ) { $content = new OC_Template( $application, $name, "admin" ); foreach( $parameters as $key => $value ) { - $content->assign( $key, $value, false ); + $content->assign( $key, $value ); } return $content->printPage(); } @@ -512,7 +512,7 @@ class OC_Template{ public static function printGuestPage( $application, $name, $parameters = array() ) { $content = new OC_Template( $application, $name, "guest" ); foreach( $parameters as $key => $value ) { - $content->assign( $key, $value, false ); + $content->assign( $key, $value ); } return $content->printPage(); } diff --git a/lib/templatelayout.php b/lib/templatelayout.php index afa875b0a6d..3d824cdca8f 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -13,19 +13,19 @@ class OC_TemplateLayout extends OC_Template { if( $renderas == 'user' ) { parent::__construct( 'core', 'layout.user' ); if(in_array(OC_APP::getCurrentApp(), array('settings','admin', 'help'))!==false) { - $this->assign('bodyid', 'body-settings', false); + $this->assign('bodyid', 'body-settings'); }else{ - $this->assign('bodyid', 'body-user', false); + $this->assign('bodyid', 'body-user'); } // Add navigation entry $this->assign( 'application', '', false ); $navigation = OC_App::getNavigation(); - $this->assign( 'navigation', $navigation, false); - $this->assign( 'settingsnavigation', OC_App::getSettingsNavigation(), false); + $this->assign( 'navigation', $navigation); + $this->assign( 'settingsnavigation', OC_App::getSettingsNavigation()); foreach($navigation as $entry) { if ($entry['active']) { - $this->assign( 'application', $entry['name'], false ); + $this->assign( 'application', $entry['name'] ); break; } } |