← Back to team overview

mahara-contributors team mailing list archive

[Bug 1476925] Re: Make ajax get_string work for logged-out users

 

To test:

1. Add this to the bottom of index.tpl:

<h1 id="putithere">Test: </h1>
 {include file="footer.tpl"}
<script>
jQuery(function() {
    jQuery('#putithere').append(get_string_ajax('youhaveviews','view','5'));
});
</script> 

2. Log out of Mahara
3. View the Mahara home page

Expected result: At the bottom of the page, you'll see: "Test: You have 5 pages."
Actual result: At the bottom of the page you just see "Test:"

** Tags added: behatnotneeded

-- 
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/1476925

Title:
  Make ajax get_string work for logged-out users

Status in Mahara:
  In Progress

Bug description:
  With Bug #1450995 We added a "get_string_ajax()" javascript method
  which lets you load up Mahara language strings using Ajax, after the
  page is done loading.

  However, it only works for logged-in users. I think eventually this is
  going to cause us some problems, because we're going to forget about
  that limitation and use this method for some action which is also
  accessible to logged-out users. So in the long run it's probably best
  to make it work the same whether you're logged in or logged out.

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


References