Remove version from settings.

This commit is contained in:
Lars Jung 2015-05-14 14:50:51 +02:00
parent 95f087cfd6
commit 17b5d4dfaa
7 changed files with 28 additions and 31 deletions

View file

@ -147,12 +147,13 @@ class Setup {
$keys = [
'PUBLIC_HREF',
'ROOT_HREF',
'VERSION'
'ROOT_HREF'
];
if ($as_admin) {
$keys = array_merge($keys, [
'VERSION',
'PHP_VERSION',
'MIN_PHP_VERSION',
'HAS_PHP_EXIF',

View file

@ -2,7 +2,6 @@ modulejs.define('core/settings', ['_', 'config'], function (_, config) {
return _.extend({}, config.options, {
publicHref: config.setup.PUBLIC_HREF,
rootHref: config.setup.ROOT_HREF,
version: config.setup.VERSION
rootHref: config.setup.ROOT_HREF
});
});

View file

@ -44,6 +44,10 @@ modulejs.define('main/info', ['$', 'config', 'core/resource', 'core/server'], fu
function addTests() {
if (!setup.AS_ADMIN) {
return;
}
$(tplTests).appendTo('#content');
addTest(
@ -51,13 +55,6 @@ modulejs.define('main/info', ['$', 'config', 'core/resource', 'core/server'], fu
/^\d+\.\d+\.\d+$/.test(setup.VERSION), setup.VERSION
);
if (setup.AS_ADMIN) {
addAdminTests();
}
}
function addAdminTests() {
addTest(
'Index file found', 'Add <code>' + setup.INDEX_HREF + '</code> to your index file list',
setup.INDEX_HREF

View file

@ -1,10 +1,10 @@
modulejs.define('view/topbar', ['$', 'core/settings', 'view/root'], function ($, settings, root) {
modulejs.define('view/topbar', ['$', 'view/root'], function ($, root) {
var tplTopbar =
'<div id="topbar">' +
'<div id="toolbar"/>' +
'<div id="flowbar"/>' +
'<a id="backlink" href="http://larsjung.de/h5ai/" title="powered by h5ai ' + settings.version + '">' +
'<a id="backlink" href="http://larsjung.de/h5ai/" title="powered by h5ai - http://larsjung.de/h5ai/">' +
'<div>powered</div>' +
'<div>by h5ai</div>' +
'</a>' +