Skip to content

Commit 21f5db5

Browse files
committed
the plugin now use sfPropelORMPlugin
1 parent 5b1fd5a commit 21f5db5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The `sfNestedCommentPlugin` is a symfony plugin that enabled the model(s) to be commentable.
44
Inspired by wordpress commenting system, its support nested comments and enabled by default.
5-
This plugin is for symfony 1.4 and [sfPropel15Plugin](http://www.symfony-project.org/plugins/sfPropel15Plugin).
5+
This plugin is for symfony 1.4 and [sfPropelORMPlugin](https://github.com/propelorm/sfPropelORMPlugin).
66

77
You need [jQuery](http://jquery.com/) to use this plugin. jQuery is not bundeled with this plugin, you have to include it yourself.
88

@@ -234,4 +234,4 @@ param:
234234
![Preview Comments](http://dl.dropbox.com/u/16750037/sfNestedCommentPlugin/Screenshot.png)
235235

236236
### Recent comments
237-
![Preview Recent comments](http://dl.dropbox.com/u/16750037/sfNestedCommentPlugin/Screenshot-1.png)
237+
![Preview Recent comments](http://dl.dropbox.com/u/16750037/sfNestedCommentPlugin/Screenshot-1.png)

lib/sfNestedCommentRouting.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ static public function listenToRoutingLoadConfigurationEvent(sfEvent $event)
1212

1313
static public function addRouteForNestedCommentAdmin(sfEvent $event)
1414
{
15-
$event->getSubject()->prependRoute('sf_nested_comment', new sfPropel15RouteCollection(array(
15+
$event->getSubject()->prependRoute('sf_nested_comment', new sfPropelORMRouteCollection(array(
1616
'name' => 'sf_nested_comment',
1717
'model' => 'sfNestedComment',
1818
'module' => 'sfNestedCommentAdmin',
1919
'prefix_path' => 'sf_nested_comment',
2020
'with_wildcard_routes' => true,
2121
'requirements' => array(),
2222
)));
23-
$event->getSubject()->prependRoute('sf_nested_comment_toggle_publish', new sfPropel15Route('/sf_nested_comment/:id/toggleApprove.:sf_format', array('module' => 'sfNestedCommentAdmin', 'action' => 'togglePublish', 'sf_format' => 'html'), array(), array('model' => 'sfNestedComment', 'type' => 'object')));
23+
$event->getSubject()->prependRoute('sf_nested_comment_toggle_publish', new sfPropelORMRoute('/sf_nested_comment/:id/toggleApprove.:sf_format', array('module' => 'sfNestedCommentAdmin', 'action' => 'togglePublish', 'sf_format' => 'html'), array(), array('model' => 'sfNestedComment', 'type' => 'object')));
2424
}
2525
}

0 commit comments

Comments
 (0)