aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 01:56:30 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 01:56:30 +0000
commitffca510fca9f902930dcbb1893bb6b5c5e1e8e3a (patch)
tree55bba14274aeba35ced042eb7f3f3f5826fc7b56 /mod/file
parent15fd80978f5cfd56038fd077f92a6ec860d86847 (diff)
downloadelgg-ffca510fca9f902930dcbb1893bb6b5c5e1e8e3a.tar.gz
elgg-ffca510fca9f902930dcbb1893bb6b5c5e1e8e3a.tar.bz2
switched from new to add
git-svn-id: http://code.elgg.org/elgg/trunk@7846 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/index.php4
-rw-r--r--mod/file/languages/en.php2
-rw-r--r--mod/file/start.php4
-rw-r--r--mod/file/upload.php2
-rw-r--r--mod/file/views/default/file/group_module.php4
5 files changed, 8 insertions, 8 deletions
diff --git a/mod/file/index.php b/mod/file/index.php
index 940f9c30f..8f2546ca0 100644
--- a/mod/file/index.php
+++ b/mod/file/index.php
@@ -32,10 +32,10 @@ if ($owner->guid == get_loggedin_userid()) {
$title = elgg_echo("file:user", array($owner->name));
$params['filter'] = '';
if ($owner->isMember(get_loggedin_user())) {
- $url = "pg/file/new/$owner->guid";
+ $url = "pg/file/add/$owner->guid";
$vars = array(
'href' => $url,
- 'text' => elgg_echo("file:new"),
+ 'text' => elgg_echo("file:add"),
'class' => 'elgg-action-button',
);
$button = elgg_view('output/url', $vars);
diff --git a/mod/file/languages/en.php b/mod/file/languages/en.php
index 14de64ed5..52113a3e2 100644
--- a/mod/file/languages/en.php
+++ b/mod/file/languages/en.php
@@ -31,7 +31,7 @@ $english = array(
'file:list:title' => "%s's %s %s",
'file:title:friends' => "Friends'",
- 'file:new' => 'Upload a file',
+ 'file:add' => 'Upload a file',
'file:file' => "File",
'file:title' => "Title",
diff --git a/mod/file/start.php b/mod/file/start.php
index 46503b3a7..88213fc5c 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -70,7 +70,7 @@ function file_init() {
* User's files: pg/file/owner/<username>
* Friends' files: pg/file/friends/<username>
* View file: pg/file/view/<guid>/<title>
- * New file: pg/file/new/<guid>
+ * New file: pg/file/add/<guid>
* Edit file: pg/file/edit/<guid>
* Group files: pg/file/group/<guid>/owner
*
@@ -102,7 +102,7 @@ function file_page_handler($page) {
set_input('guid', $page[1]);
include "$file_dir/view.php";
break;
- case 'new':
+ case 'add':
set_input('guid', $page[1]);
include "$file_dir/upload.php";
break;
diff --git a/mod/file/upload.php b/mod/file/upload.php
index f5fab81f4..8f10b9d82 100644
--- a/mod/file/upload.php
+++ b/mod/file/upload.php
@@ -13,7 +13,7 @@ $owner = elgg_get_page_owner();
gatekeeper();
group_gatekeeper();
-$title = elgg_echo('file:new');
+$title = elgg_echo('file:add');
// set up breadcrumbs
elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/");
diff --git a/mod/file/views/default/file/group_module.php b/mod/file/views/default/file/group_module.php
index babdcf677..e0501709f 100644
--- a/mod/file/views/default/file/group_module.php
+++ b/mod/file/views/default/file/group_module.php
@@ -35,8 +35,8 @@ if (!$content) {
}
$new_link = elgg_view('output/url', array(
- 'href' => "pg/file/new/$group->guid",
- 'text' => elgg_echo('file:new'),
+ 'href' => "pg/file/add/$group->guid",
+ 'text' => elgg_echo('file:add'),
));
$content .= "<span class='elgg-widget-more'>$new_link</span>";