private void RegisterViewEngines(object sender, EventArgs e)
        {
            // For versions less than 8.0 routes are registered in ServiceRouteMapper
            // to prevent registration of same view engine on each request
            var versionofDNN = typeof(DotNetNukeContext).Assembly.GetName().Version;

            if (versionofDNN >= new Version("8.0"))
            {
                MvcUtils.RegisterViewEngines();
            }
        }
Пример #2
0
        private void RegisterViewEngines()
        {
            // For versions greater than 8.0 routes are registered in HccUrlRoutingModule
            // since all view engines are cleared in DNN's MvcHttpModule module
            var versionofDNN = typeof(DotNetNukeContext).Assembly.GetName().Version;

            if (versionofDNN < new Version("8.0"))
            {
                MvcUtils.RegisterViewEngines();
            }
        }
Пример #3
0
 private void RegisterViewEngines(object sender, EventArgs e)
 {
     MvcUtils.RegisterViewEngines();
 }