Commit 64c965e31955b47f763ad0ed400eb7aa657a98b7

Authored by nbm
1 parent 3a1aa943

Don't hard-code the URL, get it from the configuration


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3868 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/document/add.smarty
... ... @@ -29,7 +29,7 @@ function swapElementFromRequest(elementId, url) {
29 29  
30 30 function getMetadataForType(id) {
31 31 swapElementFromRequest('type_metadata_fields',
32   - 'http://ktcvs.local/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID='
  32 + 'http://{/literal}{$config->get('KnowledgeTree/serverName')}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID='
33 33 + id);
34 34 }
35 35  
... ...
templates/ktcore/import/fs_import.smarty
... ... @@ -28,7 +28,7 @@ function swapElementFromRequest(elementId, url) {
28 28  
29 29 function getMetadataForType(id) {
30 30 swapElementFromRequest('type_metadata_fields',
31   - 'http://ktcvs.local/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID='
  31 + 'http://{/literal}{$config->get('KnowledgeTree/serverName')}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID='
32 32 + id);
33 33 }
34 34  
... ...