Skip to content

Commit

Permalink
Merge branch '4.0-dev' into multilangstatus_display
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Feb 1, 2018
2 parents 8dd93a7 + f431605 commit 465f17d
Show file tree
Hide file tree
Showing 262 changed files with 1,099 additions and 792 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_banners/Model/TracksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public function getContent()

if ($this->getState('compressed'))
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

$files = array(
'track' => array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getTable($type = 'Category', $prefix = 'Administrator', $config
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

$parentId = $app->input->getInt('parent_id');
$this->setState('category.parent_id', $parentId);
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fields/Model/FieldModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ protected function canEditState($record)
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InstallModel extends BaseDatabaseModel
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

$this->setState('message', $app->getUserState('com_installer.message'));
$this->setState('extension_message', $app->getUserState('com_installer.extension_message'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getTable($name = '', $prefix = '', $options = array())
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();
$params = ComponentHelper::getParams('com_languages');

// Load the User state.
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/Model/ItemModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ protected function getReorderConditions($table)
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/Model/ItemsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct($config = array(), MVCFactoryInterface $factory = nu
*/
protected function populateState($ordering = 'a.lft', $direction = 'asc')
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

$forcedLanguage = $app->input->get('forcedLanguage', '', 'cmd');

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/Model/MenuModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getTable($type = 'MenuType', $prefix = '\JTable', $config = arra
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$id = $app->input->getInt('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function setup(SimpleXMLElement $element, $value, $group = null)

if (!$menuType)
{
$app = JFactory::getApplication('administrator');
$app = JFactory::getApplication();
$currentMenuType = $app->getUserState('com_menus.items.menutype', '');
$menuType = $app->input->getString('menutype', $currentMenuType);
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_modules/Model/ModuleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function __construct($config = array())
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_modules/Model/SelectModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SelectModel extends ListModel
*/
protected function populateState($ordering = null, $direction = null)
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the filter state.
$clientId = $app->getUserState('com_modules.modules.client_id', 0);
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_plugins/Model/PluginModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected function populateState()
// Execute the parent method.
parent::populateState();

$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('extension_id');
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_tags/Model/TagModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function canEditState($record)
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

$parentId = $app->input->getInt('parent_id');
$this->setState('tag.parent_id', $parentId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct($config = array(), MVCFactoryInterface $factory = nu
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function getDirectoryTree($dir)
protected function populateState()
{
jimport('joomla.filesystem.file');
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getItems()
*/
protected function populateState($ordering = 'a.lft', $direction = 'asc')
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Adjust the context to support modal layouts.
$layout = $app->input->get('layout', 'default');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getItems()
*/
protected function populateState($ordering = 'a.lft', $direction = 'asc')
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Adjust the context to support modal layouts.
$layout = $app->input->get('layout', 'default');
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_users/Model/UsersModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct($config = array(), MVCFactoryInterface $factory = nu
*/
protected function populateState($ordering = 'a.name', $direction = 'asc')
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Adjust the context to support modal layouts.
if ($layout = $app->input->get('layout', 'default', 'cmd'))
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion administrator/templates/atum/css/template-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion administrator/templates/atum/css/template.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/com_config/Model/ModulesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ModulesModel extends FormModel
*/
protected function populateState()
{
$app = \JFactory::getApplication('administrator');
$app = \JFactory::getApplication();

// Load the User state.
$pk = $app->input->getInt('id');
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/Model/ContactModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ContactModel extends FormModel
protected function populateState()
{
/** @var SiteApplication $app */
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();

$this->setState('contact.id', $app->input->getInt('id'));
$this->setState('params', $app->getParams());
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/Model/ArchiveModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function populateState($ordering = null, $direction = null)
protected function getListQuery()
{
$params = $this->state->params;
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();
$catids = $app->input->getVar('catid', array());
$catids = array_values(array_diff($catids, array('')));
$articleOrderDate = $params->get('order_date');
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/Model/ArticleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ArticleModel extends ItemModel
*/
protected function populateState()
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();

// Load state from the request.
$pk = $app->input->getInt('id');
Expand Down
4 changes: 2 additions & 2 deletions components/com_content/Model/CategoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function __construct($config = array())
*/
protected function populateState($ordering = null, $direction = null)
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();
$pk = $app->input->getInt('id');

$this->setState('category.id', $pk);
Expand Down Expand Up @@ -282,7 +282,7 @@ public function getItems()
*/
protected function _buildContentOrderBy()
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();
$db = $this->getDbo();
$params = $this->state->params;
$itemid = $app->input->get('id', 0, 'int') . ':' . $app->input->get('Itemid', 0, 'int');
Expand Down
2 changes: 1 addition & 1 deletion components/com_finder/helpers/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function getItemid($query)
// Get the menu items for com_finder.
if (!$items || !$active)
{
$app = JFactory::getApplication('site');
$app = JFactory::getApplication();
$com = JComponentHelper::getComponent('com_finder');
$menu = $app->getMenu();
$active = $menu->getActive();
Expand Down
2 changes: 1 addition & 1 deletion components/com_newsfeeds/Model/NewsfeedModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NewsfeedModel extends ItemModel
*/
protected function populateState()
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();

// Load state from the request.
$pk = $app->input->getInt('id');
Expand Down
4 changes: 2 additions & 2 deletions components/com_tags/Model/TagsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TagsModel extends ListModel
*/
protected function populateState($ordering = null, $direction = null)
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();

// Load state from the request.
$pid = $app->input->getInt('parent_id');
Expand Down Expand Up @@ -115,7 +115,7 @@ public function getItems()
*/
protected function getListQuery()
{
$app = \JFactory::getApplication('site');
$app = \JFactory::getApplication();
$user = \JFactory::getUser();
$groups = implode(',', $user->getAuthorisedViewLevels());
$pid = $this->getState('tag.parent_id');
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Component/Router/RouterBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct($app = null, $menu = null)
}
else
{
$this->app = \JFactory::getApplication('site');
$this->app = \JFactory::getApplication();
}

if ($menu)
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ protected static function createDocument()
* @see \JStream
* @since 11.1
*/
public static function getStream($use_prefix = true, $use_network = true, $ua = null, $uamask = false)
public static function getStream($use_prefix = true, $use_network = true, $ua = 'Joomla', $uamask = false)
{
\JLoader::import('joomla.filesystem.stream');

Expand Down
Loading

0 comments on commit 465f17d

Please sign in to comment.