Major code formate to try and set a standared. Added four new fields for JavaScript files

This commit is contained in:
2017-12-15 01:10:47 +02:00
parent c9cad158e6
commit d3cbea5c82
172 changed files with 14538 additions and 14358 deletions

View File

@ -48,7 +48,8 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
// Check Token!
$token = JSession::getFormToken();
$call_token = $jinput->get('token', 0, 'ALNUM');
if($user->id != 0 && $token == $call_token){
if($user->id != 0 && $token == $call_token)
{
$task = $this->getTask();
switch($task){
case 'getText':
@ -64,25 +65,25 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
$result = '';
}
echo $result;
// stop execution gracefully
jexit();
// stop execution gracefully
jexit();
}
catch(Exception $e)
catch(Exception $e)
{
// stop execution gracefully
// stop execution gracefully
jexit();
}
break;
}
}
else
{
// stop execution gracefully
else
{
// stop execution gracefully
jexit();
}
}
protected function getHelpDocumentText($id)
protected function getHelpDocumentText($id)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);