Major code formate to try and set a standared. Added four new fields for JavaScript files
This commit is contained in:
@ -159,10 +159,10 @@ class ComponentbuilderControllerSnippet extends JControllerForm
|
||||
{
|
||||
$append .= '&ref='.(string)$ref.'&refid='.(int)$refid;
|
||||
}
|
||||
elseif ($ref)
|
||||
{
|
||||
elseif ($ref)
|
||||
{
|
||||
$append .= '&ref='.(string)$ref;
|
||||
}
|
||||
}
|
||||
|
||||
if ($tmpl)
|
||||
{
|
||||
@ -274,11 +274,11 @@ class ComponentbuilderControllerSnippet extends JControllerForm
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
if ($this->ref || $this->refid)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
if ($this->ref || $this->refid)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
|
||||
$saved = parent::save($key, $urlVar);
|
||||
|
||||
|
Reference in New Issue
Block a user