Ver código fonte

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

bastien 13 anos atrás
pai
commit
48ff1f4616
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Muzich/CoreBundle/lib/Controller.php

+ 1 - 1
src/Muzich/CoreBundle/lib/Controller.php Ver arquivo

@@ -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;