Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed unused codes

  • Loading branch information...
commit c83ec7910648632e58aa37f67905640c9675d56a 1 parent d2105ae
@nibsirahsieu authored
View
17 lib/helper/sfNestedCommentHelper.php 100644 → 100755
@@ -8,20 +8,3 @@ function url_for_commentable_object($commentableObject, $absolute = false)
}
return false;
}
-
-function url_for_commentable_object_app($commentableObject, $appname, $absolute = false, $env = null, $debug = false)
-{
- $callable = sfNestedCommentConfig::getUrlCommentableCallable();
- if ($callable)
- {
- return url_for_app($appname, call_user_func($callable, $commentableObject), $absolute, $env, $debug);
- }
- return false;
-}
-
-function url_for_app($appname, $url, $absolute = false, $env = null, $debug = false)
-{
- require_once(sfConfig::get('sf_plugins_dir') . '/omCrossAppUrlPlugin/lib/helper/crossAppLinkHelper.php');
-
- return cross_app_url_for($appname, $url, $absolute, $env, $debug);
-}
View
6 lib/model/plugin/PluginsfNestedCommentQuery.php 100644 → 100755
@@ -28,8 +28,8 @@ public function level($level)
public function model($object)
{
- return $this->join('sfNestedComment.sfNestedCommentableModel')
- ->useQuery('sfNestedCommentableModel')
+ return $this
+ ->usesfNestedCommentableModelQuery()
->model($object)
->endUse();
}
@@ -44,4 +44,4 @@ public function isAuthorApproved($name, $email)
return $comment;
}
-}
+}
View
4 modules/sfNestedComment/templates/_showComments.php 100644 → 100755
@@ -7,7 +7,7 @@
<?php $use_ajax = sfNestedCommentConfig::isAjaxEnabled() ?>
<?php $enable_nested = sfNestedCommentConfig::isNestedEnabled() ?>
<?php if($use_ajax): ?>
- <?php use_javascript(sfConfig::get('sf_jquery_web_dir') . '/js/'.sfConfig::get('sf_jquery_core'), 'first') ?>
+ <?php use_helper('jQuery') ?>
<?php if($enable_nested): ?>
<?php use_javascript('/sfNestedCommentPlugin/js/jCollapsible.js') ?>
<?php endif; ?>
@@ -29,4 +29,4 @@
<script type="text/javascript">
setupAjaxListComments('<?php echo $model ?>', '<?php echo $object->getPrimaryKey() ?>', <?php echo sfNestedCommentConfig::isNestedEnabled() ?>);
</script>
-<?php endif; ?>
+<?php endif; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.