Version 5.0.0 beta 7
This commit is contained in:
1 parent
fa2a720105
commit
54d5dcd0a0
156 files changed
+4337
-2995
No files matched your search
@@ -46,6 +46,7 @@ use IPS\Db;
|
||||
use IPS\Db\Select;
|
||||
use IPS\downloads\extensions\nexus\Item\File as FileNexusItem;
|
||||
use IPS\downloads\File\PendingVersion;
|
||||
use IPS\Events\Event;
|
||||
use IPS\File as SystemFile;
|
||||
use IPS\File\Iterator;
|
||||
use IPS\Helpers\Form;
|
||||
@@ -71,6 +72,7 @@ use IPS\Node\Model;
|
||||
use IPS\Notification;
|
||||
use IPS\Output;
|
||||
use IPS\Output\Plugin\Filesize;
|
||||
use IPS\Output\UI\UiExtension;
|
||||
use IPS\Patterns\ActiveRecordIterator;
|
||||
use IPS\Request;
|
||||
use IPS\Settings;
|
||||
@@ -1505,7 +1507,7 @@ Filter
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return $member->group['idm_view_downloads'];
|
||||
return (bool) $member->group['idm_view_downloads'];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2417,6 +2419,13 @@ Filter
|
||||
$this->_primaryScreenshotThumb = FALSE;
|
||||
$this->syncTopic();
|
||||
}
|
||||
|
||||
/* Call UI extensions */
|
||||
$this->ui( 'formPostSave', array( $values ) );
|
||||
|
||||
/* Fire event for listeners */
|
||||
Event::fire( 'onCreateOrEdit', $this, array( $values ) );
|
||||
|
||||
Webhook::fire( 'downloads_new_version', array( $this ) );
|
||||
}
|
||||
|
||||
@@ -2782,7 +2791,11 @@ Filter
|
||||
*/
|
||||
public function newVersionFormElements( Form &$form ) : void
|
||||
{
|
||||
|
||||
/* UI Extension for new version. You can check Request::i()->do to see which form you're working with. */
|
||||
foreach( UiExtension::i()->run( $this, 'formElements', array( $this->container() ) ) as $element )
|
||||
{
|
||||
$form->add( $element );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user