aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/languages/en.php2
-rw-r--r--mod/blog/lib/blog.php10
-rw-r--r--mod/blog/start.php4
-rw-r--r--mod/blog/views/default/blog/group_module.php2
4 files changed, 9 insertions, 9 deletions
diff --git a/mod/blog/languages/en.php b/mod/blog/languages/en.php
index 8d0ee7c44..1fe34215e 100644
--- a/mod/blog/languages/en.php
+++ b/mod/blog/languages/en.php
@@ -23,7 +23,7 @@ $english = array(
'blog:write' => 'Write a blog post',
// Editing
- 'blog:new' => 'New blog post',
+ 'blog:add' => 'New blog post',
'blog:edit' => 'Edit blog post',
'blog:excerpt' => 'Excerpt',
'blog:body' => 'Body',
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index c0b24f92e..3a8985026 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -91,10 +91,10 @@ function blog_get_page_content_list($container_guid = NULL) {
if (elgg_instanceof($container, 'group')) {
$return['filter'] = '';
if ($container->isMember(get_loggedin_user())) {
- $url = "pg/blog/new/$container->guid";
+ $url = "pg/blog/add/$container->guid";
$params = array(
'href' => $url,
- 'text' => elgg_echo("blog:new"),
+ 'text' => elgg_echo("blog:add"),
'class' => 'elgg-action-button',
);
$buttons = elgg_view('output/url', $params);
@@ -327,10 +327,10 @@ function blog_get_page_content_edit($page, $guid = 0, $revision = NULL) {
}
elgg_set_page_owner_guid($container->guid);
- elgg_push_breadcrumb(elgg_echo('blog:new'));
+ elgg_push_breadcrumb(elgg_echo('blog:add'));
$body_vars = blog_prepare_form_vars($blog);
- $title = elgg_echo('blog:new');
+ $title = elgg_echo('blog:add');
$content = elgg_view_form('blog/save', $vars, $body_vars);
$content .= elgg_view('js/blog/save_draft');
}
@@ -472,7 +472,7 @@ function blog_url_forwarder($page) {
$url = "{$CONFIG->wwwroot}pg/blog/friends/{$page[0]}";
break;
case "new":
- $url = "{$CONFIG->wwwroot}pg/blog/new/$user->guid";
+ $url = "{$CONFIG->wwwroot}pg/blog/add/$user->guid";
break;
case "owner":
$url = "{$CONFIG->wwwroot}pg/blog/owner/{$page[0]}";
diff --git a/mod/blog/start.php b/mod/blog/start.php
index ea88c5a7b..afedfc4d7 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -85,7 +85,7 @@ function blog_runonce() {
* Friends' blog: pg/blog/friends/<username>
* User's archives: pg/blog/archives/<username>/<time_start>/<time_stop>
* Blog post: pg/blog/view/<guid>/<title>
- * New post: pg/blog/new/<guid>
+ * New post: pg/blog/add/<guid>
* Edit post: pg/blog/edit/<guid>/<revision>
* Preview post: pg/blog/preview/<guid>
* Group blog: pg/blog/group/<guid>/owner
@@ -129,7 +129,7 @@ function blog_page_handler($page) {
case 'view':
$params = blog_get_page_content_read($page[1]);
break;
- case 'new':
+ case 'add':
gatekeeper();
$params = blog_get_page_content_edit($page_type, $page[1]);
break;
diff --git a/mod/blog/views/default/blog/group_module.php b/mod/blog/views/default/blog/group_module.php
index 57adff678..a88f223db 100644
--- a/mod/blog/views/default/blog/group_module.php
+++ b/mod/blog/views/default/blog/group_module.php
@@ -35,7 +35,7 @@ if (!$content) {
}
$new_link = elgg_view('output/url', array(
- 'href' => "pg/blog/new/$group->guid",
+ 'href' => "pg/blog/add/$group->guid",
'text' => elgg_echo('blog:write'),
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";