Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Some declaration fixes #247

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion com_podcastmanager/admin/models/fields/podcastmedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getInput()
$script[] = ' if (old_id != id) {';
$script[] = ' var elem = document.id(id)';
$script[] = ' elem.value = value;';
$script[] = ' elem.onchange();';
$script[] = ' elem.dispatchEvent(new Event(\'change\'));';
$script[] = ' }';
$script[] = ' }';

Expand Down
2 changes: 1 addition & 1 deletion com_podcastmanager/admin/models/podcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ protected function loadFormData()
*
* @since 1.6
*/
protected function prepareTable(&$table)
protected function prepareTable($table)
{
// Set the publish date to now
if ($table->published == 1 && intval($table->publish_up) == 0)
Expand Down
2 changes: 1 addition & 1 deletion com_podcastmanager/admin/tables/podcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function _getAssetTitle()
*
* @since 2.0
*/
protected function _getAssetParentId($table = null, $id = null)
protected function _getAssetParentId(JTable $table = null, $id = null)
{
// Initialise variables.
$assetId = null;
Expand Down
1 change: 1 addition & 0 deletions script.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public function update($parent)
*/
public function postflight($type, $parent, $results)
{
$strapped = false;
// If in CMS 3, install the Strapped layouts
if (version_compare(JVERSION, '3.0', 'ge') && $type == 'install')
{
Expand Down