Blame view

libraries/nextend2/nextend/library/applications/system/backend/controllers/Browse.php 532 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

class N2SystemBackendBrowseController extends N2BackendController
{

    public function __construct($appType, $defaultParams) {

        N2Localization::addJS(array(
            'Drop files anywhere to upload or',
            'Select files'
        ));

        parent::__construct($appType, $defaultParams);
    }

    public function actionIndex() {
        N2JS::addFirstCode("new NextendBrowse('" . $this->appType->router->createUrl('browse/index') . "', " . (defined('N2_IMAGE_UPLOAD_DISABLE') ? 0 : 1) . ");");
    }
}