소스 검색

minor fixes

Olivier Massot 3 년 전
부모
커밋
261b76e6e0

+ 0 - 1
doc/env.md

@@ -13,4 +13,3 @@ ces variables dans le fichier typo3/public/typo3conf/AdditionalConfiguration.php
 Exemple:
 
     $GLOBALS['OT']['API_BASE_URI'] = 'http://docker.nginx.opentalent.fr';
-

+ 1 - 1
ot_core/Classes/Website/OtWebsiteRepository.php

@@ -159,7 +159,7 @@ class OtWebsiteRepository
             $q->andWhere($q->expr()->eq('deleted', 0));
         }
         $rootUid = $q->execute()->fetchColumn(0);
-        if (!$rootUid > 0) {
+        if (!($rootUid > 0)) {
             throw new NoSuchRecordException('No root page found for website ' . $websiteUid);
         }
         return $rootUid;

+ 0 - 1
ot_templating/Classes/ViewHelpers/Events/GetAllViewHelper.php

@@ -105,7 +105,6 @@ class GetAllViewHelper extends OtAbstractViewHelper {
         try {
             $events = $this->eventRepository->searchBy($organizationId, $searchParams);
         } catch (ApiRequestException $e) {
-            var_dump($e);die;
             $this->logger->error(sprintf('API Error: %s', $e->getMessage()));
             $events = new ApiPagedCollection(0, 0, 1, []);
         }

+ 4 - 4
ot_templating/Resources/Private/Partials/Modern/Carousel.html

@@ -11,15 +11,14 @@
                     countAs="count">
 
     <f:if condition="{count} > 0">
-
         <section id="main-carousel" class="rev-slider">
             <div id="rev_slider_268_1_wrapper"
                  class="rev_slider_wrapper fullwidthbanner-container"
                  data-alias="webster-slider-2"
                  data-source="gallery"
-                 style="margin:0px auto;background:transparent;padding:0px;margin-top:0px;margin-bottom:0px;">
+                 style="margin:0 auto;padding:0;background:transparent;">
 
-                <f:if condition="{count} <= 1">
+                <f:if condition="{count} === 1">
                     <style>
                         .tparrows {
                             display: none !important;
@@ -44,7 +43,8 @@
                                 data-easeout="default"
                                 data-masterspeed="1000"
                                 data-thumb=""
-                                data-rotate="0"  data-saveperformance="off"
+                                data-rotate="0"
+                                data-saveperformance="off"
                                 data-title="Slide"
                                 data-param1=""
                                 data-param2=""