Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
$ Storing the default style name without ** when language debug is on…
Browse files Browse the repository at this point in the history
… while installing template

--HG--
extra : convert_revision : svn%3A6f6e1ebd-4c2b-0410-823f-f34bde69bce9/development/trunk/libraries%4019354
  • Loading branch information
chdemko committed Nov 5, 2010
1 parent fab2133 commit a028a77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion joomla/installer/adapters/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function loadLanguage($path=null)
*/
public function install()
{
$lang = JFactory::getLanguage();
$xml = $this->parent->getManifest();

// Get the client application target
Expand Down Expand Up @@ -208,7 +209,9 @@ public function install()
$query->set('template='.$db->Quote($row->element));
$query->set('client_id='.$db->Quote($clientId));
$query->set('home=0');
$query->set('title='.$db->Quote(JText::sprintf('JLIB_INSTALLER_DEFAULT_STYLE', $this->get('name'))));
$debug = $lang->setDebug(false);
$query->set('title='.$db->Quote(JText::sprintf('JLIB_INSTALLER_DEFAULT_STYLE', JText::_($this->get('name')))));
$lang->setDebug($debug);
$query->set('params='.$db->Quote($row->params));
$db->setQuery($query);
$db->query(); // There is a chance this could fail but we don't care...
Expand Down

0 comments on commit a028a77

Please sign in to comment.