瀏覽代碼

[ProfilerController] fix view parameters

Victor Berchet 14 年之前
父節點
當前提交
e2f2513b05
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

+ 2 - 2
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

@@ -171,7 +171,7 @@ class ProfilerController extends ContainerAware
         return $this->container->get('templating')->renderResponse('WebProfilerBundle:Profiler:search.twig', array(
             'token'    => $token,
             'profiler' => $profiler,
-            'tokens'   => $profiler->find($ip, $url, 10),
+            'tokens'   => $profiler->find($ip, $url, $limit),
             'ip'       => $ip,
             'url'      => $url,
             'limit'    => $limit,
@@ -196,7 +196,7 @@ class ProfilerController extends ContainerAware
         return $this->container->get('templating')->renderResponse('WebProfilerBundle:Profiler:results.twig', array(
             'token'    => $token,
             'profiler' => $this->container->get('profiler')->loadFromToken($token),
-            'tokens'   => $profiler->find($ip, $url, 10),
+            'tokens'   => $profiler->find($ip, $url, $limit),
             'ip'       => $ip,
             'url'      => $url,
             'limit'    => $limit,