Skip to content

Commit e50d17c

Browse files
author
André R
committed
Merge branch '2017.12' into 2018.09
2 parents 3fd3f40 + dee3162 commit e50d17c

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed
2.13 KB
Loading

design/admin/stylesheets/pagelayout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ a.image-text:hover > span
130130
text-decoration: none;
131131
color:#f4f4f4;
132132
font-size:11px;
133-
background: transparent url('../images/3/logo_separator_sprite.png') -117px 11px no-repeat;
133+
background: transparent url('../images/3/logo_separator_sprite.png') -117px 16px no-repeat;
134134
padding-left:11px;
135135
padding-right:11px;
136136
}

design/admin/templates/dashboard/maintenance.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<div id="mainteinance-text">
33
<h2>{'Software update and Maintenance'|i18n( 'design/admin/dashboard/maintenance' )}</h2>
44

5-
<p>{'Your installation: <span id="ez-version">%1</span>'|i18n( 'design/admin/dashboard/maintenance', , array( fetch( 'setup', 'version' ) ) )}</p>
5+
<p>{'Your installation: <span id="ez-version">%1</span>'|i18n( 'design/admin/dashboard/maintenance', , array( fetch( 'setup', 'alias' ) ) )}</p>
66
<p>{'You are running <span class="edition-info">%edition</span>, it might not be up to date with the latest hot fixes and service packs. Contact <a href="%ez_link">eZ Systems</a> for more infomation.'|i18n( 'design/admin/dashboard/maintenance', , hash( '%edition', fetch( 'setup', 'edition' ), '%ez_link', "http://ez.no" ) )}</p>
77
</div>

kernel/setup/ezsetupfunctioncollection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ function fetchFullVersionString()
2121
return array( 'result' => eZPublishSDK::version() );
2222
}
2323

24+
function fetchVersionAlias()
25+
{
26+
return array( 'result' => eZPublishSDK::version( false, true ) );
27+
}
28+
2429
function fetchMajorVersion()
2530
{
2631
return array( 'result' => eZPublishSDK::majorVersion() );

kernel/setup/function_definition.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
'method' => 'fetchFullVersionString' ),
1515
'parameter_type' => 'standard',
1616
'parameters' => array( ) );
17+
$FunctionList['alias'] = array( 'name' => 'alias',
18+
'operation_types' => array( 'read' ),
19+
'call_method' => array( 'class' => 'eZSetupFunctionCollection',
20+
'method' => 'fetchVersionAlias' ),
21+
'parameter_type' => 'standard',
22+
'parameters' => array( ) );
1723
$FunctionList['major_version'] = array( 'name' => 'major_version',
1824
'operation_types' => array( 'read' ),
1925
'call_method' => array( 'class' => 'eZSetupFunctionCollection',

lib/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static function version( $withRelease = true, $asAlias = false, $withState = tru
3232
if ( $asAlias )
3333
{
3434
$versionText = eZPublishSDK::alias();
35-
if ( $withState )
35+
if ( $withState && eZPublishSDK::state() )
3636
$versionText .= "-" . eZPublishSDK::state();
3737
}
3838
else
@@ -94,7 +94,7 @@ static function release()
9494
*/
9595
static function alias()
9696
{
97-
return eZPublishSDK::version();
97+
return eZPublishSDK::VERSION_ALIAS;
9898
}
9999

100100
/*!

0 commit comments

Comments
 (0)