Browse Source

corrected strpos function

Ahmet Akbana 8 years ago
parent
commit
696ed9da19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Twig/GlobalVariables.php

+ 1 - 1
Twig/GlobalVariables.php

@@ -102,7 +102,7 @@ class GlobalVariables
      */
     private function getCodeAction($code, $action)
     {
-        if ($pipe = strpos('|', $code)) {
+        if ($pipe = strpos($code, '|')) {
             // convert code=sonata.page.admin.page|sonata.page.admin.snapshot, action=list
             // to => sonata.page.admin.page|sonata.page.admin.snapshot.list
             $action = $code.'.'.$action;