mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
- Added new global constant FHC_OE_ROOT in config/global.config-default.inc.php
- Replaced where needed the string "etw" with FHC_OE_ROOT - Added new config entry "cis_oes_lehrauftraege" in application/config/cis.php - Used the new config entry "cis_oes_lehrauftraege" in the view application/views/lehre/lehrauftrag/acceptLehrauftrag.php to replace the hard coded strings "etw" and "lehrgang"
This commit is contained in:
+7
-4
@@ -19,7 +19,10 @@
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
session_start();
|
||||
|
||||
require_once('../config/global.config.inc.php');
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/content.class.php');
|
||||
require_once('../include/template.class.php');
|
||||
@@ -64,8 +67,8 @@ if(isset($_POST['NewContent']))
|
||||
if(!isset($template->result[0]))
|
||||
exit('Es ist kein Template vorhanden');
|
||||
|
||||
if(in_array('etw',$berechtigte_oe))
|
||||
$oe = 'etw';
|
||||
if (in_array(FHC_OE_ROOT, $berechtigte_oe))
|
||||
$oe = FHC_OE_ROOT;
|
||||
else
|
||||
$oe = $berechtigte_oe[0];
|
||||
|
||||
@@ -294,8 +297,8 @@ if(!is_null($method))
|
||||
if(!isset($template->result[0]))
|
||||
die('Es ist kein Template vorhanden');
|
||||
|
||||
if(in_array('etw',$berechtigte_oe))
|
||||
$oe = 'etw';
|
||||
if (in_array(FHC_OE_ROOT, $berechtigte_oe))
|
||||
$oe = FHC_OE_ROOT;
|
||||
else
|
||||
$oe = $berechtigte_oe[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user