For code readability and forward compatibility, all instances of $_GET['q'] should be replaced with the current_path() API function. The attached text file shows all files and line numbers of $_GET['q'] references in Facet API.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | facetapi-1359376-1.patch | 4.12 KB | foopang |
| get-q-instances.txt | 961 bytes | cpliakas |
Comments
Comment #1
foopang commentedHi, this is my first attempt, please review it. Thanks so much!
Comment #2
cpliakas commentedThanks for the patch! Minor procedural point, make sure to mark the issue as "needs review" so it shows up in the appropriate queue.
Appreciate the contribution!
~Chris
Comment #3
cpliakas commentedLooks good to me. All instances of
$_GET['q']have been replaced, patch applies cleanly. Marking as RTBC.Comment #4
nick_vh+1 from me ;-)
Comment #5
cpliakas commentedThanks for the second set of eyes, Nick. Committed at 66b3840.
beansboxchrispang, congrats on becoming the 15th committer to Facet API!
Comment #6
foopang commentedThanks Chris, really happy that I could ever contribute to such a great module, although it is just some very minor editing:)