some even smaller fixes
git-svn-id: http://yolanda.mister-muffin.de/svn@304 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
2b2f4a64d5
commit
c4b86cf26c
3 changed files with 7 additions and 5 deletions
|
@ -20,7 +20,6 @@ use lib qw(/var/www/yolanda);
|
||||||
#set global config variable
|
#set global config variable
|
||||||
$config = XMLin("$root/config/backend.xml", KeyAttr => {string => 'id'}, ForceArray => [ 'string' ], ContentKey => '-content');
|
$config = XMLin("$root/config/backend.xml", KeyAttr => {string => 'id'}, ForceArray => [ 'string' ], ContentKey => '-content');
|
||||||
$config = $config->{"strings"}->{"string"};
|
$config = $config->{"strings"}->{"string"};
|
||||||
#set global variables
|
|
||||||
|
|
||||||
$dbh = DBI->connect("DBI:mysql:".$config->{"database_name"}.":".$config->{"database_host"}, $config->{"database_username"}, $config->{"database_password"}) or die $DBI::errstr;
|
$dbh = DBI->connect("DBI:mysql:".$config->{"database_name"}.":".$config->{"database_host"}, $config->{"database_username"}, $config->{"database_password"}) or die $DBI::errstr;
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<languages>
|
<languages>
|
||||||
<lang>
|
|
||||||
<short></short>
|
|
||||||
<name lang="en">Undefined</name>
|
|
||||||
</lang>
|
|
||||||
<lang>
|
<lang>
|
||||||
<short>aa</short>
|
<short>aa</short>
|
||||||
<name lang="en">Afar</name>
|
<name lang="en">Afar</name>
|
||||||
|
|
|
@ -277,6 +277,13 @@
|
||||||
<!-- somehow one cannot access DC.Language from inside the for-each... -->
|
<!-- somehow one cannot access DC.Language from inside the for-each... -->
|
||||||
<xsl:variable name="language" select="//uploadform/@DC.Language" />
|
<xsl:variable name="language" select="//uploadform/@DC.Language" />
|
||||||
<select name="DC.Language" size="1">
|
<select name="DC.Language" size="1">
|
||||||
|
<option>
|
||||||
|
<xsl:if test="not($language)">
|
||||||
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:attribute name="value"></xsl:attribute>
|
||||||
|
Undefined
|
||||||
|
</option>
|
||||||
<xsl:for-each select="$language_strings">
|
<xsl:for-each select="$language_strings">
|
||||||
<option>
|
<option>
|
||||||
<xsl:variable name="short" select="short" />
|
<xsl:variable name="short" select="short" />
|
||||||
|
|
Loading…
Reference in a new issue