Skip to content

Commit

Permalink
Merge branch 'staging' into improveReinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Sep 12, 2016
2 parents 1bd8edd + b39ada2 commit bf6fbb8
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions administrator/language/en-GB/en-GB.ini
Expand Up @@ -424,7 +424,7 @@ JGLOBAL_MENU_SELECTION="Menu Selection:"
JGLOBAL_MODIFIED="Modified"
JGLOBAL_MODIFIED_DATE="Modified Date"
JGLOBAL_MOST_HITS="Most Hits"
JGLOBAL_MOST_RECENT_FIRST="Most recent first"
JGLOBAL_MOST_RECENT_FIRST="Most Recent First"
JGLOBAL_MULTI_COLUMN_ORDER_DESC="Order articles down or across columns."
JGLOBAL_MULTI_COLUMN_ORDER_LABEL="Multi Column Order"
JGLOBAL_MULTI_LEVEL="Multi Level"
Expand All @@ -447,7 +447,7 @@ JGLOBAL_NUMBER_CATEGORY_ITEMS_LABEL="Show Article Count"
JGLOBAL_NUMBER_ITEMS_LIST_DESC="Default number of articles to list on a page."
JGLOBAL_NUMBER_ITEMS_LIST_LABEL="# Articles to List"
JGLOBAL_NO_MATCHING_RESULTS="No Matching Results"
JGLOBAL_OLDEST_FIRST="Oldest first"
JGLOBAL_OLDEST_FIRST="Oldest First"
JGLOBAL_ORDER_ASCENDING="Ascending"
JGLOBAL_ORDER_DESCENDING="Descending"
JGLOBAL_ORDER_DIRECTION_LABEL="Direction"
Expand Down
4 changes: 2 additions & 2 deletions administrator/templates/isis/css/template-rtl.css
Expand Up @@ -7519,8 +7519,8 @@ h6 {
.sidebar-nav .nav-list > li > a {
color: #555;
padding: 3px 25px;
margin-left: -25px;
margin-right: -25px;
margin-left: -26px;
margin-right: -26px;
}
.sidebar-nav .nav-list > li.active > a {
color: #fff;
Expand Down
4 changes: 2 additions & 2 deletions administrator/templates/isis/css/template.css
Expand Up @@ -7519,8 +7519,8 @@ h6 {
.sidebar-nav .nav-list > li > a {
color: #555;
padding: 3px 25px;
margin-left: -25px;
margin-right: -25px;
margin-left: -26px;
margin-right: -26px;
}
.sidebar-nav .nav-list > li.active > a {
color: #fff;
Expand Down
4 changes: 2 additions & 2 deletions administrator/templates/isis/less/template.less
Expand Up @@ -496,8 +496,8 @@ h6 {
.sidebar-nav .nav-list > li > a {
color: #555;
padding: 3px 25px;
margin-left: -25px;
margin-right: -25px;
margin-left: -26px;
margin-right: -26px;
}

.sidebar-nav .nav-list > li.active > a {
Expand Down
14 changes: 7 additions & 7 deletions libraries/cms/html/behavior.php
Expand Up @@ -677,14 +677,16 @@ public static function keepalive()
return;
}

$session = JFactory::getSession();

// If the handler is not 'Database', we set a fixed, small refresh value (here: 5 min)
if (JFactory::getConfig()->get('session_handler') != 'database')
if ($session->storeName != 'database')
{
$refresh_time = 300000;
}
else
{
$life_time = JFactory::getConfig()->get('lifetime') * 60000;
$life_time = $session->getExpire() * 1000;
$refresh_time = ($life_time <= 60000) ? 45000 : $life_time - 60000;

// The longest refresh period is one hour to prevent integer overflow.
Expand All @@ -694,14 +696,12 @@ public static function keepalive()
}
}

$url = JUri::base(true) . '/index.php';

// If we are in the frontend or logged in as a user, we can use the ajax component to reduce the load
if (JFactory::getApplication()->isSite() || !JFactory::getUser()->guest)
{
$url = JUri::base(true) . '/index.php?option=com_ajax&format=json';
}
else
{
$url = JUri::base(true) . '/index.php';
$url .= '?option=com_ajax&format=json';
}

$script = 'window.setInterval(function(){';
Expand Down
11 changes: 6 additions & 5 deletions libraries/joomla/language/language.php
Expand Up @@ -723,18 +723,19 @@ public static function exists($lang, $basePath = JPATH_BASE)
*/
public function load($extension = 'joomla', $basePath = JPATH_BASE, $lang = null, $reload = false, $default = true)
{
// If language is null set as the current language.
if (!$lang)
{
$lang = $this->lang;
}

// Load the default language first if we're not debugging and a non-default language is requested to be loaded
// with $default set to true
if (!$this->debug && ($lang != $this->default) && $default)
{
$this->load($extension, $basePath, $this->default, false, true);
}

if (!$lang)
{
$lang = $this->lang;
}

$path = self::getLanguagePath($basePath, $lang);

$internal = $extension == 'joomla' || $extension == '';
Expand Down
1 change: 1 addition & 0 deletions tests/unit/suites/libraries/cms/html/JHtmlBehaviorTest.php
Expand Up @@ -45,6 +45,7 @@ protected function setUp()

JFactory::$application = $this->getMockCmsApp();
JFactory::$document = $this->getMockDocument();
JFactory::$session = $this->getMockSession();

// We generate a random template name so that we don't collide or hit anything
JFactory::$application->expects($this->any())
Expand Down

0 comments on commit bf6fbb8

Please sign in to comment.