Closed (fixed)
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Jul 2016 at 09:49 UTC
Updated:
20 Jan 2017 at 07:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jalpesh commentedHere we go with patch.Thanks.
Comment #3
borisson_I fixed one small thing to comply with the drupal coding standards. It's not allowed to use a FQN in code. RTBC.
Comment #5
borisson_Back to rtbc, the fail on php5.5 is unrelated.
Comment #6
berdirThanks for the patch.
I prefer \Drupal:.database() over Database::getConnection().
And for the plugin class, lets properly inject the database connection, replacing with the static call doesn't bring us anything.
Comment #7
lpsolit commentedNot sure what you mean by "for the plugin class, lets properly inject the database connection", so I simply replaced db_select() by \Drupal::database()->select() there too. Tell me what you meant exactly if you want me to change it.
Comment #8
lpsolit commentedOK, I think I got it. :)
Comment #10
berdirYeah, exactly like that, thanks!