mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-12 11:16:22 +00:00
better checks for definition
This commit is contained in:
@@ -22,7 +22,7 @@ function architect($url)
|
|||||||
|
|
||||||
//if there is no info in the URL, don't even bother checking with the controllers
|
//if there is no info in the URL, don't even bother checking with the controllers
|
||||||
//just show the site
|
//just show the site
|
||||||
if( (!defined('UPLOAD_FORM_LOCATION') && count($u)==0) || (defined('UPLOAD_FORM_LOCATION') && UPLOAD_FORM_LOCATION && '/'.implode('/',$u)==UPLOAD_FORM_LOCATION) )
|
if( ( (!defined('UPLOAD_FORM_LOCATION') || (defined('UPLOAD_FORM_LOCATION') && !UPLOAD_FORM_LOCATION)) && count($u)==0) || (defined('UPLOAD_FORM_LOCATION') && UPLOAD_FORM_LOCATION && '/'.implode('/',$u)==UPLOAD_FORM_LOCATION) )
|
||||||
{
|
{
|
||||||
renderTemplate('main');
|
renderTemplate('main');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user