e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 213 forks source link

e_SELF and e_QUERY constants are not available if I use SEF URLs #996

Closed lonalore closed 9 years ago

lonalore commented 9 years ago

e_SELF and e_QUERY constants are not available if I use SEF URLs.

If I use SEF URLs: http://demo.lonalore.hu/e107v2/qna/ask

...and if I call file directly: http://demo.lonalore.hu/e107v2/e107_plugins/qna/ask.php

my e_url implementation: https://github.com/lonalore/qna/blob/master/e_url.php

CaMer0n commented 9 years ago

use e_REQUEST_SELF and $_GET

lonalore commented 9 years ago

I wanted to use e_SELF for action URL on my form, but finally I used e107::url() instead. I just reported this because I thought it's a bug. Thank You!

CaMer0n commented 9 years ago

You can use e_REQUEST_SELF, it should work with SEF enabled and disabled.