diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:27:40 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 01:27:40 +0000 |
commit | af2f3805095f8a91d85847e11faeb280fddf58c0 (patch) | |
tree | 221ef519a94523d494511ba33acb3f34f68f04c0 /mod/file/views/default | |
parent | 9af0f9be12346d2008cf6de6e5ab7bd083c09c8c (diff) | |
download | elgg-af2f3805095f8a91d85847e11faeb280fddf58c0.tar.gz elgg-af2f3805095f8a91d85847e11faeb280fddf58c0.tar.bz2 |
Fixes #2921: converted internalname => name and internalid => id
git-svn-id: http://code.elgg.org/elgg/trunk@8249 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views/default')
-rw-r--r-- | mod/file/views/default/file/embed_upload.php | 2 | ||||
-rw-r--r-- | mod/file/views/default/forms/file/upload.php | 16 | ||||
-rw-r--r-- | mod/file/views/default/widgets/filerepo/edit.php | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/mod/file/views/default/file/embed_upload.php b/mod/file/views/default/file/embed_upload.php index a5cf7ee59..8536acd77 100644 --- a/mod/file/views/default/file/embed_upload.php +++ b/mod/file/views/default/file/embed_upload.php @@ -3,7 +3,7 @@ * Files upload form for embed */ -echo elgg_view_form('file/upload', array('internalid' => 'file_embed_upload'), array('ajax' => TRUE)); +echo elgg_view_form('file/upload', array('id' => 'file_embed_upload'), array('ajax' => TRUE)); ?> diff --git a/mod/file/views/default/forms/file/upload.php b/mod/file/views/default/forms/file/upload.php index a96cbaef6..001e66674 100644 --- a/mod/file/views/default/forms/file/upload.php +++ b/mod/file/views/default/forms/file/upload.php @@ -23,19 +23,19 @@ if ($guid) { ?> <div> <label><?php echo $file_label; ?></label><br /> - <?php echo elgg_view('input/file', array('internalname' => 'upload')); ?> + <?php echo elgg_view('input/file', array('name' => 'upload')); ?> </div> <div> <label><?php echo elgg_echo('title'); ?></label><br /> - <?php echo elgg_view('input/text', array('internalname' => 'title', 'value' => $title)); ?> + <?php echo elgg_view('input/text', array('name' => 'title', 'value' => $title)); ?> </div> <div> <label><?php echo elgg_echo('description'); ?></label> - <?php echo elgg_view('input/longtext', array('internalname' => 'description', 'value' => $desc)); ?> + <?php echo elgg_view('input/longtext', array('name' => 'description', 'value' => $desc)); ?> </div> <div> <label><?php echo elgg_echo('tags'); ?></label> - <?php echo elgg_view('input/tags', array('internalname' => 'tags', 'value' => $tags)); ?> + <?php echo elgg_view('input/tags', array('name' => 'tags', 'value' => $tags)); ?> </div> <?php @@ -47,20 +47,20 @@ if ($categories) { ?> <div> <label><?php echo elgg_echo('access'); ?></label><br /> - <?php echo elgg_view('input/access', array('internalname' => 'access_id', 'value' => $access_id)); ?> + <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => $access_id)); ?> </div> <div> <?php -echo elgg_view('input/hidden', array('internalname' => 'container_guid', 'value' => $container_guid)); +echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid)); //@todo this should not be necessary in 1.8... -- ajax actions can be auto-detected if ($ajax) { - echo elgg_view('input/hidden', array('internalname' => 'ajax', 'value' => 1)); + echo elgg_view('input/hidden', array('name' => 'ajax', 'value' => 1)); } if ($guid) { - echo elgg_view('input/hidden', array('internalname' => 'file_guid', 'value' => $guid)); + echo elgg_view('input/hidden', array('name' => 'file_guid', 'value' => $guid)); } echo elgg_view('input/submit', array('value' => elgg_echo("save"))); diff --git a/mod/file/views/default/widgets/filerepo/edit.php b/mod/file/views/default/widgets/filerepo/edit.php index 6de77fc78..cab35b6ef 100644 --- a/mod/file/views/default/widgets/filerepo/edit.php +++ b/mod/file/views/default/widgets/filerepo/edit.php @@ -12,7 +12,7 @@ if (!isset($vars['entity']->num_display)) { } $params = array( - 'internalname' => 'params[num_display]', + 'name' => 'params[num_display]', 'value' => $vars['entity']->num_display, 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20), ); |