File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ public function initialize()
7
7
{
8
8
if ($ this ->configuration instanceof sfApplicationConfiguration)
9
9
{
10
- if (in_array ('sfNestedComment ' , sfConfig::get ('sf_enabled_modules ' , array ())))
10
+ if (sfNestedCommentConfig:: isRoutesRegister () && in_array ('sfNestedComment ' , sfConfig::get ('sf_enabled_modules ' , array ())))
11
11
{
12
12
$ this ->dispatcher ->connect ('routing.load_configuration ' , array ('sfNestedCommentRouting ' , 'listenToRoutingLoadConfigurationEvent ' ));
13
13
}
14
14
15
- if (in_array ('sfNestedCommentAdmin ' , sfConfig::get ('sf_enabled_modules ' , array ())))
15
+ if (sfNestedCommentConfig:: isRoutesRegister () && in_array ('sfNestedCommentAdmin ' , sfConfig::get ('sf_enabled_modules ' , array ())))
16
16
{
17
17
$ this ->dispatcher ->connect ('routing.load_configuration ' , array ('sfNestedCommentRouting ' , 'addRouteForNestedCommentAdmin ' ));
18
18
}
Original file line number Diff line number Diff line change @@ -107,4 +107,9 @@ static public function getRecaptchaPrivateKey()
107
107
{
108
108
return sfConfig::get ('app_recaptcha_private_key ' );
109
109
}
110
- }
110
+
111
+ static public function isRoutesRegister ()
112
+ {
113
+ return sfConfig::get ('app_sfNestedComment_routes_register ' , true );
114
+ }
115
+ }
You can’t perform that action at this time.
0 commit comments