mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 00:08:19 -04:00
Remove version from settings.
This commit is contained in:
parent
95f087cfd6
commit
17b5d4dfaa
7 changed files with 28 additions and 31 deletions
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue