Commit 3233787a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove strings counting views, files, folders on group view page

parent c00d4633
......@@ -64,6 +64,7 @@ $string['filethingdeleted'] = '%s deleted';
$string['filetypes'] = 'Configure Uploadable File Types';
$string['filetypedescription'] = '<p>You may configure the allowed file types that users can upload here. This grants you more control over what can be uploaded. This checking is performed in addition to virus checking, if you have virus checking turned on.</p><p>Note that &quot;Unknown Application&quot; may be necessary for some movies and archive files (such as gzip) to work.<p>';
$string['folder'] = 'Folder';
$string['Folders'] = 'Folders';
$string['foldercreated'] = 'Folder created';
$string['groupfiles'] = 'Group Files';
$string['groupfilesfor'] = 'Group Files for %s';
......@@ -605,7 +605,7 @@ JAVASCRIPT;
return (object) array(
'files' => count_records_select('artefact', "artefacttype IN $filetypesql AND $ownersql", $phvals),
'folders' => 1+count_records_select('artefact', "artefacttype = 'folder' AND $ownersql", $phvals)
'folders' => count_records_select('artefact', "artefacttype = 'folder' AND $ownersql", $phvals)
......@@ -75,8 +75,9 @@ $smarty->assign('group', $group);
$smarty->assign('groupid', $id);
$smarty->assign('grouptabs', group_get_menu_tabs($group));
$smarty->assign('foruminfo', $foruminfo);
$smarty->assign('strgroupviews', get_string('groupviewscount', 'group', count_records('view', 'group', $group->id)));
$smarty->assign('strcontent', get_string('groupfilescount', 'group', $filecounts->files, $filecounts->folders));
$smarty->assign('viewcount', count_records('view', 'group', $group->id));
$smarty->assign('filecount', $filecounts->files);
$smarty->assign('foldercount', $filecounts->folders);
......@@ -257,9 +257,5 @@ $string['changeroleto'] = 'Change role to';
$string['rolechanged'] = 'Role changed';
$string['removefromgroup'] = 'Remove from group';
$string['userremoved'] = 'User removed';
$string['groupviewscount'] = 'This group has %s views';
$string['groupfilescount'] = 'This group has %s files in %s folders';
$string['About'] = 'About';
......@@ -14,8 +14,9 @@
<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$smarty.foreach.admins.last}, {/if}
<li><strong>{str tag=Created section=group}:</strong> {$group->ctime}</li>
{if $strgroupviews}<li><strong>{str tag=Views section=group}:</strong> {$strgroupviews}</li>{/if}
{if $strcontent}<li><strong>{str tag=Files section=group}:</strong> {$strcontent}</li>{/if}
<li><strong>{str tag=Views section=view}:</strong> {$viewcount}&nbsp;
<strong>{str tag=Files section=artefact.file}:</strong> {$filecount}&nbsp;
<strong>{str tag=Folders section=artefact.file}:</strong> {$foldercount}</li>
<div class="group-info-para">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment