Skip to content

Commit

Permalink
"MDL-21786, moving comments library files to consistency"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Mar 15, 2010
1 parent d577476 commit 36051c9
Show file tree
Hide file tree
Showing 15 changed files with 666 additions and 664 deletions.
4 changes: 2 additions & 2 deletions blocks/comments/block_comments.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once($CFG->libdir . '/commentlib.php');
require_once($CFG->dirroot . '/comment/lib.php');

class block_comments extends block_base {

Expand All @@ -11,7 +11,7 @@ function init() {

function specialization() {
// require js for commenting
comment::js();
comment::init();
}
function applicable_formats() {
return array('all' => true);
Expand Down
4 changes: 2 additions & 2 deletions blog/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
require_once($CFG->dirroot .'/blog/locallib.php');
require_once($CFG->dirroot .'/course/lib.php');
require_once($CFG->dirroot .'/tag/lib.php');
require_once($CFG->libdir .'/commentlib.php');
require_once($CFG->dirroot .'/comment/lib.php');

$id = optional_param('id', null, PARAM_INT);
$start = optional_param('formstart', 0, PARAM_INT);
Expand All @@ -24,7 +24,7 @@
$courseid = optional_param('courseid', null, PARAM_INT);
$search = optional_param('search', null, PARAM_RAW);

comment::js();
comment::init();

$url_params = compact('id', 'start', 'tag', 'userid', 'tagid', 'modid', 'entryid', 'groupid', 'courseid', 'search');
foreach ($url_params as $var => $val) {
Expand Down
2 changes: 1 addition & 1 deletion comment/comment_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Handling all ajax request for comments API
*/
require_once('../config.php');
require_once($CFG->libdir.'/commentlib.php');
require_once($CFG->dirroot . '/comment/lib.php');

$courseid = optional_param('courseid', SITEID, PARAM_INT);
$contextid = optional_param('contextid', SYSCONTEXTID, PARAM_INT);
Expand Down
2 changes: 1 addition & 1 deletion comment/comment_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Handling all ajax request for comments API
*/
require_once('../config.php');
require_once($CFG->libdir.'/commentlib.php');
require_once($CFG->libdir.'/comment/lib.php');

$courseid = optional_param('courseid', SITEID, PARAM_INT);
$contextid = optional_param('contextid', SYSCONTEXTID, PARAM_INT);
Expand Down
2 changes: 1 addition & 1 deletion comment/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once('lib.php');
require_once('locallib.php');

require_login();
admin_externalpage_setup('comments');
Expand Down
Loading

0 comments on commit 36051c9

Please sign in to comment.