Skip to content
Snippets Groups Projects
Commit ac954740 authored by Tom Gross's avatar Tom Gross
Browse files

Remove duplicate code in BasicController constructor

parent 70acd80a
No related branches found
No related tags found
No related merge requests found
......@@ -84,15 +84,7 @@ public abstract class BasicController extends DefaultController {
* @param wControl
*/
protected BasicController(UserRequest ureq, WindowControl wControl) {
super(wControl);
setLocale(ureq.getLocale());
identity = ureq.getIdentity();
Class<?> cl = this.getClass();
translator = Util.createPackageTranslator(cl, getLocale());
fallbackTranslator = null;
velocity_root = Util.getPackageVelocityRoot(cl);
logger = Tracing.createLoggerFor(cl);
this(ureq, wControl, null);
}
/**
......@@ -112,9 +104,6 @@ public abstract class BasicController extends DefaultController {
super(wControl);
setLocale(ureq.getLocale());
identity = ureq.getIdentity();
if (fallBackTranslator == null) {
throw new AssertException("please provide a fall translator if using this constructor!!");
}
Class<?> cl = this.getClass();
fallbackTranslator = fallBackTranslator;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment