Commit 058a00ea authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1620416: replace all $smarty->assign_by_ref()

with $smarty->assign()
behatnotneeded

Change-Id: I667463b7732bd3f1dd2619b2836cf4b8c560d264
parent 7de2bdc6
......@@ -210,7 +210,7 @@ uksort($upgrades, 'sort_upgrades');
$js .= "\n" . 'var todo = ' . json_encode(array_keys($upgrades)) . ";\n";
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign_by_ref('upgrades', $upgrades);
$smarty->assign('upgrades', $upgrades);
if (isset($upgrades['core'])) {
$smarty->assign('releaseargs', array($upgrades['core']->torelease, $upgrades['core']->to));
}
......
......@@ -121,8 +121,8 @@ $userids = array_keys($users);
if ($selected == 'users') {
$smarty = smarty_core();
$smarty->assign_by_ref('users', $users);
$smarty->assign_by_ref('USER', $USER);
$smarty->assign('users', $users);
$smarty->assign('USER', $USER);
$userlisthtml = $smarty->fetch('admin/users/userlist.tpl');
if ($USER->get('admin') || $USER->is_institutional_admin()) {
......@@ -152,8 +152,8 @@ else if ($selected == 'accesslist') {
$users[$v['owner']]->views[$k] = $v;
}
$smarty = smarty_core();
$smarty->assign_by_ref('users', $users);
$smarty->assign_by_ref('USER', $USER);
$smarty->assign('users', $users);
$smarty->assign('USER', $USER);
$userlisthtml = $smarty->fetch('admin/users/accesslists.tpl');
}
else if ($selected == 'loginaslog') {
......@@ -184,8 +184,8 @@ else if ($selected == 'loginaslog') {
$note = false;
}
$smarty = smarty_core();
$smarty->assign_by_ref('log', $log);
$smarty->assign_by_ref('USER', $USER);
$smarty->assign('log', $log);
$smarty->assign('USER', $USER);
$smarty->assign('note', $note);
$userlisthtml = $smarty->fetch('admin/users/loginaslog.tpl');
}
......@@ -196,4 +196,3 @@ $smarty->assign('users', $users);
$smarty->assign('userlisthtml', $userlisthtml);
$smarty->assign('csv', isset($csv));
$smarty->display('admin/users/report.tpl');
......@@ -556,8 +556,8 @@ class LeapImportAnnotation extends LeapImportArtefactPlugin {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('entryannotations', $entryannotations);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('entryannotations', $entryannotations);
return $smarty->fetch('artefact:annotation:import/annotations.tpl');
}
}
......@@ -903,7 +903,7 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
(isset($data->block) ? '&block=' . $data->block : '');
$smarty = smarty_core();
$smarty->assign_by_ref('data', $data->data);
$smarty->assign('data', $data->data);
$smarty->assign('canedit', $data->canedit);
$smarty->assign('viewid', $data->view);
$smarty->assign('position', $data->position);
......
......@@ -392,8 +392,8 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('entryblogs', $entryblogs);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('entryblogs', $entryblogs);
return $smarty->fetch('artefact:blog:import/blogs.tpl');
}
......
......@@ -91,7 +91,7 @@ if (empty($blogs->institution) && empty($blogs->group)) {
ArtefactTypeBlog::build_blog_list_html($blogs);
$smarty = smarty(array('paginator'));
$smarty->assign_by_ref('blogs', $blogs);
$smarty->assign('blogs', $blogs);
$smarty->assign('institutionname', $institutionname);
$smarty->assign('group', $groupid);
$js = '';
......
......@@ -337,7 +337,7 @@ class ArtefactTypeBlog extends ArtefactType {
$smarty->assign('owner', $this->get('owner'));
$smarty->assign('tags', $this->get('tags'));
$smarty->assign_by_ref('posts', $posts);
$smarty->assign('posts', $posts);
return array('html' => $smarty->fetch('artefact:blog:blog.tpl'), 'javascript' => '');
}
......@@ -401,7 +401,7 @@ class ArtefactTypeBlog extends ArtefactType {
public static function build_blog_list_html(&$blogs) {
$smarty = smarty_core();
$smarty->assign_by_ref('blogs', $blogs);
$smarty->assign('blogs', $blogs);
$blogs->tablerows = $smarty->fetch('artefact:blog:bloglist.tpl');
$pagination = build_pagination(array(
'id' => 'bloglist_pagination',
......
......@@ -107,7 +107,7 @@ $form['elements']['group'] = array('type' => 'hidden', 'value' => ($groupid) ? $
$form = pieform($form);
$smarty = smarty();
$smarty->assign_by_ref('form', $form);
$smarty->assign('form', $form);
$smarty->display('form.tpl');
exit;
......
......@@ -218,7 +218,7 @@ $smarty = smarty(array(), array(), array(), array(
),
));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign_by_ref('form', $form);
$smarty->assign('form', $form);
$smarty->display('artefact:blog:editpost.tpl');
......
......@@ -111,8 +111,8 @@ if (!$institutionname && !$groupid) {
}
}
$smarty->assign_by_ref('editform', $form);
$smarty->assign_by_ref('blog', $blog);
$smarty->assign('editform', $form);
$smarty->assign('blog', $blog);
$smarty->display('artefact:blog:settings.tpl');
exit;
......
......@@ -210,8 +210,8 @@ else if (!$USER->get_account_preference('multipleblogs')) {
}
}
$smarty->assign_by_ref('blog', $blog);
$smarty->assign_by_ref('posts', $posts);
$smarty->assign('blog', $blog);
$smarty->assign('posts', $posts);
$smarty->display('artefact:blog:view.tpl');
exit;
......
......@@ -348,8 +348,8 @@ class LeapImportComment extends LeapImportArtefactPlugin {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('entrycomments', $entrycomments);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('entrycomments', $entrycomments);
return $smarty->fetch('artefact:comment:import/comments.tpl');
}
}
......@@ -868,7 +868,7 @@ class ArtefactTypeComment extends ArtefactType {
}
$smarty = smarty_core();
$smarty->assign_by_ref('data', $data->data);
$smarty->assign('data', $data->data);
$smarty->assign('canedit', $data->canedit);
$smarty->assign('position', $data->position);
$smarty->assign('viewid', $data->view);
......
......@@ -168,8 +168,8 @@ class LeapImportFile extends LeapImportArtefactPlugin {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('entryfiles', $entryfiles);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('entryfiles', $entryfiles);
return $smarty->fetch('artefact:file:import/files.tpl');
}
......
......@@ -157,7 +157,7 @@ $smarty = smarty(array(), array(), array(), array(
),
));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign_by_ref('form', $form);
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', $artefact->get('title'));
$smarty->assign('pagedescriptionhtml', $othernotesmsg);
$smarty->display('form.tpl');
......
......@@ -1180,8 +1180,8 @@ class LeapImportInternal extends LeapImportArtefactPlugin {
$profilegroups[] = $profilegroup;
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('profilegroups', $profilegroups);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('profilegroups', $profilegroups);
return $smarty->fetch('artefact:internal:import/profilefields.tpl');
}
......
......@@ -193,7 +193,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty_core();
$smarty->assign_by_ref('data', $data);
$smarty->assign('data', $data);
$html = $smarty->fetch('artefact:internal:noteresults.tpl');
function deletenote_form($id, $notedata) {
......@@ -236,4 +236,4 @@ json_reply(false, array(
'offset' => $offset,
'setlimit' => $setlimit,
)
));
\ No newline at end of file
));
......@@ -203,7 +203,7 @@ jQuery(function($) {
$smarty = smarty(array('paginator'));
$smarty->assign('PAGEHEADING', $pageheading);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign_by_ref('data', $data);
$smarty->assign('data', $data);
$html = $smarty->fetch('artefact:internal:noteresults.tpl');
$smarty->assign('datarows', $html);
$smarty->assign('pagination', $pagination['html']);
......
......@@ -335,8 +335,8 @@ class LeapImportPlans extends LeapImportArtefactPlugin {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('entryplans', $entryplans);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('entryplans', $entryplans);
return $smarty->fetch('artefact:plans:import/plans.tpl');
}
}
......@@ -39,7 +39,7 @@ addLoadEvent(function () {
EOF;
$smarty = smarty(array('paginator'));
$smarty->assign_by_ref('plans', $plans);
$smarty->assign('plans', $plans);
$smarty->assign('strnoplansaddone',
get_string('noplansaddone', 'artefact.plans',
'<a href="' . get_config('wwwroot') . 'artefact/plans/new.php">', '</a>'));
......
......@@ -126,7 +126,7 @@ class ArtefactTypePlan extends ArtefactType {
*/
public static function build_plans_list_html(&$plans) {
$smarty = smarty_core();
$smarty->assign_by_ref('plans', $plans);
$smarty->assign('plans', $plans);
$plans['tablerows'] = $smarty->fetch('artefact:plans:planslist.tpl');
$pagination = build_pagination(array(
'id' => 'planlist_pagination',
......@@ -289,7 +289,7 @@ class ArtefactTypePlan extends ArtefactType {
ArtefactTypeTask::render_tasks($tasks, $template, $options, $pagination);
$smarty = smarty_core();
$smarty->assign_by_ref('tasks', $tasks);
$smarty->assign('tasks', $tasks);
if (isset($options['viewid'])) {
$smarty->assign('artefacttitle', '<a href="' . $baseurl . '">' . hsc($this->get('title')) . '</a>');
}
......@@ -626,7 +626,7 @@ class ArtefactTypeTask extends ArtefactType {
*/
public function build_tasks_list_html(&$tasks) {
$smarty = smarty_core();
$smarty->assign_by_ref('tasks', $tasks);
$smarty->assign('tasks', $tasks);
$tasks['tablerows'] = $smarty->fetch('artefact:plans:taskslist.tpl');
$pagination = build_pagination(array(
'id' => 'tasklist_pagination',
......@@ -659,8 +659,8 @@ class ArtefactTypeTask extends ArtefactType {
public function render_tasks(&$tasks, $template, $options, $pagination) {
$smarty = smarty_core();
$smarty->assign_by_ref('tasks', $tasks);
$smarty->assign_by_ref('options', $options);
$smarty->assign('tasks', $tasks);
$smarty->assign('options', $options);
$tasks['tablerows'] = $smarty->fetch($template);
if ($tasks['limit'] && $pagination) {
......
......@@ -35,6 +35,6 @@ else {
}
$smarty = smarty();
$smarty->assign_by_ref('form', $form);
$smarty->assign_by_ref('PAGEHEADING', hsc(TITLE));
$smarty->assign('form', $form);
$smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->display('artefact:plans:new.tpl');
......@@ -46,10 +46,10 @@ addLoadEvent(function () {
EOF;
$smarty = smarty(array('paginator'));
$smarty->assign_by_ref('tasks', $tasks);
$smarty->assign_by_ref('plan', $id);
$smarty->assign_by_ref('tags', $plan->get('tags'));
$smarty->assign_by_ref('owner', $plan->get('owner'));
$smarty->assign('tasks', $tasks);
$smarty->assign('plan', $id);
$smarty->assign('tags', $plan->get('tags'));
$smarty->assign('owner', $plan->get('owner'));
$smarty->assign('strnotasksaddone',
get_string('notasksaddone', 'artefact.plans',
'<a class="addtask" href="' . get_config('wwwroot') . 'artefact/plans/new.php?id='.$plan->get('id').'">', '</a>'));
......
......@@ -140,7 +140,7 @@ $smarty = smarty(array(), array(), array(), array(
));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign('SUBPAGENAV', PluginArtefactResume::submenu_items());
$smarty->assign_by_ref('artefactform', $form);
$smarty->assign('artefactform', $form);
$smarty->assign('artefacttype', $type);
$smarty->display('artefact:resume:editgoalsandskills.tpl');
......
......@@ -40,8 +40,8 @@ jQuery(function($) {
});';
$smarty = smarty(array('tablerenderer'));
$smarty->assign_by_ref('goals', $goals);
$smarty->assign_by_ref('skills', $skills);
$smarty->assign('goals', $goals);
$smarty->assign('skills', $skills);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign('SUBPAGENAV', PluginArtefactResume::submenu_items());
$smarty->display('artefact:resume:goalsandskills.tpl');
......@@ -848,8 +848,8 @@ class LeapImportResume extends LeapImportArtefactPlugin {
$resumegroups[] = $resumegroup;
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign_by_ref('resumegroups', $resumegroups);
$smarty->assign('displaydecisions', $importer->get('displaydecisions'));
$smarty->assign('resumegroups', $resumegroups);
return $smarty->fetch('artefact:resume:import/resumefields.tpl');
}
......
......@@ -363,7 +363,7 @@ function auth_saml_disco_screen($list, $preferred) {
}
$smarty = smarty_core();
$smarty->assign_by_ref('results', $idps);
$smarty->assign('results', $idps);
$smarty->assign('cols', $cols);
$smarty->assign('pagedescriptionhtml', get_string('selectidp', 'auth.saml'));
$idps = $smarty->fetch('auth:saml:idptable.tpl');
......
......@@ -72,7 +72,7 @@ class PluginBlocktypeGroupMembers extends MaharaCoreBlocktype {
if ($groupmembers['count']) {
$smarty = smarty_core();
$smarty->assign_by_ref('groupmembers', $groupmembers['data']);
$smarty->assign('groupmembers', $groupmembers['data']);
$groupmembers['tablerows'] = $smarty->fetch('blocktype:groupmembers:row.tpl');
} else {
$groupmembers = false;
......
......@@ -38,7 +38,7 @@ class PluginBlocktypeMyfriends extends MaharaCoreBlocktype {
public static function build_myfriends_html(&$friends, $userid, BlockInstance $instance) {
$friendarray = array_chunk($friends['data'], 4); // get the friends into a 4x4 array
$smarty = smarty_core();
$smarty->assign_by_ref('friends', $friendarray);
$smarty->assign('friends', $friendarray);
$friends['tablerows'] = $smarty->fetch('blocktype:myfriends:myfriendrows.tpl');
if ($friends['limit'] === false) {
......
......@@ -119,7 +119,7 @@ setpageicon($smarty, 'icon-folder-open');
$smarty->assign('headingclass', 'page-header');
$smarty->assign_by_ref('form', $form);
$smarty->assign('form', $form);
$smarty->display('collection/edit.tpl');
function collectionedit_validate(Pieform $form, $values) {
......
......@@ -34,7 +34,7 @@ $shownav = $collection->get('navigation');
if ($shownav) {
if ($views = $collection->get('views')) {
if (count($views['views']) > 1) {
$smarty->assign_by_ref('collection', array_chunk($views['views'], 5));
$smarty->assign('collection', array_chunk($views['views'], 5));
}
}
}
......
......@@ -147,7 +147,7 @@ if ($views) {
$smarty = smarty_core();
$smarty->assign_by_ref('views', $views);
$smarty->assign('views', $views);
$smarty->assign('displayurl', get_config('wwwroot') . 'collection/views.php?id=' . $id);
$html = $smarty->fetch('collection/views.json.tpl');
......
......@@ -164,8 +164,8 @@ $smarty->assign('INLINEJAVASCRIPT', $inlinejs);
$smarty->assign('baseurl', $baseurl);
$smarty->assign('displayurl', get_config('wwwroot') . 'collection/views.php?id=' . $id);
$smarty->assign('removeurl', get_config('wwwroot') . 'collection/deleteview.php?id=' . $id);
$smarty->assign_by_ref('views', $views);
$smarty->assign_by_ref('viewsform', $viewsform);
$smarty->assign('views', $views);
$smarty->assign('viewsform', $viewsform);
$smarty->display('collection/views.tpl');
function addviews_validate(Pieform $form, $values) {
......
......@@ -388,8 +388,8 @@ class PluginExportHtml extends PluginExport {
if (isset($this->viewcollection[$viewid])
&& ($this->viewexportmode == PluginExport::EXPORT_LIST_OF_COLLECTIONS
|| $this->viewexportmode == PluginExport::EXPORT_ALL_VIEWS_COLLECTIONS)) {
$smarty->assign_by_ref('collectionname', $this->collections[$this->viewcollection[$viewid]]->get('name'));
$smarty->assign_by_ref('collectionmenu', $this->collection_menu($this->viewcollection[$viewid]));
$smarty->assign('collectionname', $this->collections[$this->viewcollection[$viewid]]->get('name'));
$smarty->assign('collectionmenu', $this->collection_menu($this->viewcollection[$viewid]));
$smarty->assign('viewid', $viewid);
}
......
......@@ -41,7 +41,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty(array('paginator'));
$smarty->assign_by_ref('topics', $data['data']);
$smarty->assign_by_ref('pagination', $pagination['html']);
$smarty->assign('topics', $data['data']);
$smarty->assign('pagination', $pagination['html']);
$smarty->assign('INLINEJAVASCRIPT', 'addLoadEvent(function() { p = ' . $pagination['javascript'] . '});');
$smarty->display('group/topics.tpl');
......@@ -1137,8 +1137,8 @@ class PluginImportLeap extends PluginImport {
}
}
$smarty = smarty_core();
$smarty->assign_by_ref('displaydecisions', $this->get('displaydecisions'));
$smarty->assign_by_ref('entryviews', $entryviews);
$smarty->assign('displaydecisions', $this->get('displaydecisions'));
$smarty->assign('entryviews', $entryviews);
return $smarty->fetch('import/views.tpl');
}
......
......@@ -78,7 +78,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty_core();
$smarty->assign_by_ref('views', $data->data);
$smarty->assign('views', $data->data);
$data->tablerows = $smarty->fetch('view/sharedviewrows.tpl');
$data->pagination = $pagination['html'];
$data->pagination_js = $pagination['javascript'];
......
......@@ -33,7 +33,7 @@ $pagination = build_pagination(array(
));
$smarty = smarty_core();
$smarty->assign_by_ref('topics', $data['data']);
$smarty->assign('topics', $data['data']);
$data['tablerows'] = $smarty->fetch('group/topicrows.tpl');
$data['pagination'] = $pagination['html'];
$data['pagination_js'] = $pagination['javascript'];
......
......@@ -1738,7 +1738,7 @@ function group_get_membersearch_data($results, $group, $query, $membershiptype,
$results['cdata'] = array_chunk($results['data'], 2);
$results['roles'] = group_get_role_info($group);
$smarty->assign_by_ref('results', $results);
$smarty->assign('results', $results);
$smarty->assign('searchurl', $searchurl);
$smarty->assign('pagebaseurl', $searchurl);
$smarty->assign('caneditroles', group_user_access($group) == 'admin');
......
......@@ -4255,7 +4255,7 @@ function build_portfolio_search_html(&$data) {
);
$smarty = smarty_core();
$smarty->assign_by_ref('data', $data->data);
$smarty->assign('data', $data->data);
$smarty->assign('owner', $data->owner->id);
$data->tablerows = $smarty->fetch('portfoliosearchresults.tpl');
$pagination = build_pagination(array(
......
......@@ -502,8 +502,8 @@ function build_admin_user_search_results($search, $offset, $limit) {
}
$smarty = smarty_core();
$smarty->assign_by_ref('results', $results);
$smarty->assign_by_ref('institutions', $institutions);
$smarty->assign('results', $results);
$smarty->assign('institutions', $institutions);
$smarty->assign('USER', $USER);
$smarty->assign('limit', $limit);
$smarty->assign('limitoptions', array(10, 50, 100, 200, 500));
......@@ -675,7 +675,7 @@ function build_admin_export_queue_results($search, $offset, $limit) {
);
$smarty = smarty_core();
$smarty->assign_by_ref('results', $results);
$smarty->assign('results', $results);
$smarty->assign('USER', $USER);
$smarty->assign('limit', $limit);
$smarty->assign('limitoptions', array(10, 50, 100, 200, 500));
......@@ -800,7 +800,7 @@ function build_admin_archived_submissions_results($search, $offset, $limit) {
);
$smarty = smarty_core();
$smarty->assign_by_ref('results', $results);
$smarty->assign('results', $results);
$smarty->assign('USER', $USER);
$smarty->assign('limit', $limit);
$smarty->assign('limitoptions', array(10, 50, 100, 200, 500));
......
......@@ -1693,7 +1693,7 @@ class View {
$blocktypes = PluginBlockType::get_blocktypes_for_category($category, $this);
$smarty = smarty_core();
$smarty->assign_by_ref('blocktypes', $blocktypes);
$smarty->assign('blocktypes', $blocktypes);
$smarty->assign('javascript', $javascript);
return $smarty->fetch('view/blocktypelist.tpl');
}
......@@ -5503,7 +5503,7 @@ class View {
$params['limit'] = $search->limit;
$smarty = smarty_core();
$smarty->assign_by_ref('results', $results->data);
$smarty->assign('results', $results->data);
$search->html = $smarty->fetch('view/templatesearchresults.tpl');
$search->count = $results->count;
......
......@@ -685,11 +685,11 @@ EOF;
}
$smarty->assign('FOOTERMENU', footer_menu());
$smarty->assign_by_ref('USER', $USER);
$smarty->assign('USER', $USER);
$smarty->assign('SESSKEY', $USER->get('sesskey'));
$smarty->assign('CC_ENABLED', get_config('cookieconsent_enabled'));
$javascript_array = append_version_number($javascript_array);
$smarty->assign_by_ref('JAVASCRIPT', $javascript_array);
$smarty->assign('JAVASCRIPT', $javascript_array);
$smarty->assign('RELEASE', get_config('release'));
$smarty->assign('SERIES', get_config('series'));
$smarty->assign('CACHEVERSION', get_config('cacheversion', 0));
......@@ -855,7 +855,7 @@ EOF;
if (is_array($HEADDATA) && !empty($HEADDATA)) {
$headers = array_merge($HEADDATA, $headers);
}
$smarty->assign_by_ref('HEADERS', $headers);
$smarty->assign('HEADERS', $headers);
if ($USER->get('parentuser')) {
$smarty->assign('USERMASQUERADING', true);
......
......@@ -205,6 +205,6 @@ $smarty = smarty(array('paginator'));
$smarty->assign('tags', $tags);
$smarty->assign('tagsortoptions', $tagsortoptions);
$smarty->assign('tag', $tag);
$smarty->assign_by_ref('results', $data);
$smarty->assign('results', $data);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->display('tags.tpl');
......@@ -64,7 +64,7 @@ $form = pieform(array(
));
$smarty = smarty();
$smarty->assign_by_ref('view', $view);
$smarty->assign('view', $view);
$smarty->assign('form', $form);
$smarty->assign('collectionnote', $collectionnote);
$smarty->display('view/delete.tpl');
......
......@@ -170,9 +170,9 @@ function webservice_connection_classes($institution) {
$smarty = smarty_core();
$smarty->left_delimiter = '{{';
$smarty->right_delimiter = '}}';
// $smarty->assign_by_ref('authtypes', $authtypes);
$smarty->assign_by_ref('instancelist', $connection_instances);
$smarty->assign_by_ref('connections', $connections);
// $smarty->assign('authtypes', $authtypes);
$smarty->assign('instancelist', $connection_instances);
$smarty->assign('connections', $connections);
$smarty->assign('institution', $institution);
$smarty->assign('instancestring', $instancestring);
$smarty->assign('sesskey', $USER->get('sesskey'));
......
......@@ -76,8 +76,8 @@ function build_webservice_log_search_results($search) {
);
$smarty = smarty_core();
$smarty->assign_by_ref('results', $results);
$smarty->assign_by_ref('institutions', $institutions);
$smarty->assign('results', $results);
$smarty->assign('institutions', $institutions);
$smarty->assign('searchurl', $searchurl);
$smarty->assign('sortby', $search->sortby);
$smarty->assign('sortdir', $search->sortdir);
......
......@@ -211,7 +211,7 @@ class webservice_rest_server extends webservice_base_server {
}
else if ($this->format == 'atom') {
$smarty = smarty_core();
$smarty->assign_by_ref('results', $validatedvalues);
$smarty->assign('results', $validatedvalues);
$smarty->assign('entries', $validatedvalues['entries']);
$smarty->assign('USER', $USER);
$smarty->assign('functionname', $this->functionname);
......
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