← Back to team overview

mahara-contributors team mailing list archive

[Bug 1321053] [NEW] Better way to fetch template for some json files

 

Public bug reported:

Some json files have:

ob_start();		
$smarty->display('name/of/json.tpl');
$html = ob_get_contents();		
ob_end_clean();

But this can be simplified to:

$html = $smarty->fetch('name/of/json.tpl');

So I'll do that in this patch.

** Affects: mahara
     Importance: Low
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1321053

Title:
  Better way to fetch template for some json files

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Some json files have:

  ob_start();		
  $smarty->display('name/of/json.tpl');
  $html = ob_get_contents();		
  ob_end_clean();

  But this can be simplified to:

  $html = $smarty->fetch('name/of/json.tpl');

  So I'll do that in this patch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1321053/+subscriptions


Follow ups

References