matamouros/cintient — Issue #2: Certain $GLOBALS['project'] dependent URLs break when it's not present
Author: matamouros
Created: 2011-11-10 18:28:23+00:00
State: open

[Reported by Miguel Manso]

Problem:
Certain URLs that depend on $GLOBALS['project'] might get broken when that global var is missing, i.e., when a URL is copied/pasted on an empty session.

Reproducing steps
1. Logout
2. Go to url http:///project/history

Result (probably not necessary)
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP Fatal error: Call to a member function getTitle() on a non-object in /tmp/00c620118d61376f8f9777a32e0ca99bd4a021b8.file.history.tpl.php on line 37, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP Stack trace:, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 1. {main}() /opt/www/vhosts/cintient/src/handlers/webHandler.php:0, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 2. Smarty->display() /opt/www/vhosts/cintient/src/handlers/webHandler.php:174, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 3. Smarty->fetch() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/Smarty.class.php:370, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 4. Smarty_Internal_Template->getRenderedTemplate() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/Smarty.class.php:328, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 5. Smarty_Internal_Template->renderTemplate() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/sysplugins/smarty_internal_template.php:568, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 6. include() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/sysplugins/smarty_internal_template.php:436, referer: http://cintient.dev.fms/project/history/?