diff --git a/cms/news.php b/cms/news.php index 4e5983aa0..e55f36554 100755 --- a/cms/news.php +++ b/cms/news.php @@ -43,6 +43,7 @@ require_once('../include/mitarbeiter.class.php'); require_once('../include/datum.class.php'); require_once('../include/phrasen.class.php'); require_once('../include/student.class.php'); +require_once('../include/benutzer.class.php'); $sprache = getSprache(); @@ -188,7 +189,13 @@ function getStgContent($studiengang_kz, $semester, $sprache) if(isset($row_course_leader) && $row_course_leader->uid != "") { - $xml.='uid.'@'.DOMAIN.']]>'; + $alias = new benutzer(); + $alias->load($uid); + if($alias->alias!='') + $xml.='alias.'@'.DOMAIN.']]>'; + else + $xml.='uid.'@'.DOMAIN.']]>'; + $xml.='uid.']]>'; } if(isset($row_course_leader) && $row_course_leader->telefonklappe != "") @@ -222,7 +229,13 @@ function getStgContent($studiengang_kz, $semester, $sprache) $xml.=''; $xml.='titelpre.' '.$ma->vorname.' '.$ma->nachname.' '.$ma->titelpost.']]>'; - $xml.='uid.'@'.DOMAIN.']]>'; + $alias = new benutzer(); + $alias->load($ma->uid); + if($alias->alias!='') + $xml.='alias.'@'.DOMAIN.']]>'; + else + $xml.='uid.'@'.DOMAIN.']]>'; + $xml.='uid.']]>'; if($ma->telefonklappe != '') { @@ -253,7 +266,13 @@ function getStgContent($studiengang_kz, $semester, $sprache) $xml.=''; $xml.='titelpre.' '.$ma->vorname.' '.$ma->nachname.' '.$ma->titelpost.']]>'; - $xml.='uid.'@'.DOMAIN.']]>'; + $alias = new benutzer(); + $alias->load($ma->uid); + if($alias->alias!='') + $xml.='alias.'@'.DOMAIN.']]>'; + else + $xml.='uid.'@'.DOMAIN.']]>'; + $xml.='uid.']]>'; if($ma->telefonklappe != '') { @@ -284,7 +303,13 @@ function getStgContent($studiengang_kz, $semester, $sprache) $xml.=''; $xml.='titelpre.' '.$ma->vorname.' '.$ma->nachname.' '.$ma->titelpost.']]>'; - $xml.='uid.'@'.DOMAIN.']]>'; + $alias = new benutzer(); + $alias->load($ma->uid); + if($alias->alias!='') + $xml.='alias.'@'.DOMAIN.']]>'; + else + $xml.='uid.'@'.DOMAIN.']]>'; + $xml.='uid.']]>'; if($ma->telefonklappe != '') { diff --git a/system/templates/news_xslt_xhtml.xslt b/system/templates/news_xslt_xhtml.xslt index 09acc8d5a..f16e8f127 100755 --- a/system/templates/news_xslt_xhtml.xslt +++ b/system/templates/news_xslt_xhtml.xslt @@ -106,29 +106,29 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -


+ +


T:
E:

- -


+ +


T:
E:

- -


+ +


T:
E:

- -


+ +


T:
E: