aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-19 17:40:07 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-21 21:42:42 +0200
commit6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94 (patch)
treee9ae25e66a1cf2353b293043649f30f74b43de2c /lib/template.php
parent01c39cf2bea11d6ebfb7c5abf60d5c6878dc3ad0 (diff)
downloadnextcloud-server-6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94.tar.gz
nextcloud-server-6d39e0ad6f8cc59566f83c5c9c6a227b2f569f94.zip
Change to use !== and ===
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/template.php b/lib/template.php
index 646d9b11235..4b77b7ff779 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -135,13 +135,13 @@ class OC_Template extends \OC\Template\Base {
\OC::$session->set('formfactor', $_GET['formfactor']);
}
$formfactor = \OC::$session->get('formfactor');
- if($formfactor=='default') {
+ if($formfactor==='default') {
$fext='';
- }elseif($formfactor=='mobile') {
+ }elseif($formfactor==='mobile') {
$fext='.mobile';
- }elseif($formfactor=='tablet') {
+ }elseif($formfactor==='tablet') {
$fext='.tablet';
- }elseif($formfactor=='standalone') {
+ }elseif($formfactor==='standalone') {
$fext='.standalone';
}else{
$fext='';
@@ -158,7 +158,7 @@ class OC_Template extends \OC\Template\Base {
*/
protected function findTemplate($theme, $app, $name, $fext) {
// Check if it is a app template or not.
- if( $app != '' ) {
+ if( $app !== '' ) {
$dirs = $this->getAppTemplateDirs($theme, $app, OC::$SERVERROOT, OC_App::getAppPath($app));
} else {
$dirs = $this->getCoreTemplateDirs($theme, OC::$SERVERROOT);