Procházet zdrojové kódy

bug fix: getTagsArray (controller) ne renseigné pas la variable statique.

bastien před 13 roky
rodič
revize
48ff1f4616
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Muzich/CoreBundle/lib/Controller.php

+ 1 - 1
src/Muzich/CoreBundle/lib/Controller.php Zobrazit soubor

@@ -142,7 +142,7 @@ class Controller extends BaseController
142 142
   {
143 143
     if (!count(self::$tags) || $force_refresh)
144 144
     {
145
-      return $this->getDoctrine()->getRepository('MuzichCoreBundle:Tag')->getTagsArray();
145
+      return self::$tags = $this->getDoctrine()->getRepository('MuzichCoreBundle:Tag')->getTagsArray();
146 146
     }
147 147
     
148 148
     return self::$tags;