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

Commit

Permalink
Adjust the template hint (see #7369)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 24, 2014
1 parent 11b6b0f commit 5ee24b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions system/modules/core/dca/tl_image_size.php
Expand Up @@ -262,9 +262,8 @@ public function listImageSize($row)

/**
* Show a hint if a JavaScript library needs to be included in the page layout
* @param object
*/
public function showJsLibraryHint($dc)
public function showJsLibraryHint()
{
if ($_POST || Input::get('act') != 'edit')
{
Expand All @@ -278,7 +277,7 @@ public function showJsLibraryHint($dc)
}

System::loadLanguageFile('tl_layout');
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], $GLOBALS['TL_LANG']['tl_layout']['addPicturefill'][0]));
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], 'picturefill.js', 'respimage.js'));
}


Expand Down
5 changes: 2 additions & 3 deletions system/modules/core/dca/tl_image_size_item.php
Expand Up @@ -277,9 +277,8 @@ public function listImageSizeItem($row)

/**
* Show a hint if a JavaScript library needs to be included in the page layout
* @param object
*/
public function showJsLibraryHint($dc)
public function showJsLibraryHint()
{
if ($_POST || Input::get('act') != 'edit')
{
Expand All @@ -293,7 +292,7 @@ public function showJsLibraryHint($dc)
}

System::loadLanguageFile('tl_layout');
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], $GLOBALS['TL_LANG']['tl_layout']['addPicturefill'][0]));
Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_image_size']['picturefill'], 'picturefill.js', 'respimage.js'));
}


Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/languages/en/tl_image_size.xlf
Expand Up @@ -99,7 +99,7 @@
<source>Delete image size ID %s</source>
</trans-unit>
<trans-unit id="tl_image_size.picturefill">
<source>The &lt;em&gt;%s&lt;/em&gt; option needs to be enabled in the page layout.</source>
<source>The &lt;em&gt;%s&lt;/em&gt; or &lt;em&gt;%s&lt;/em&gt; polyfill needs to be enabled in the page layout.</source>
</trans-unit>
</body>
</file>
Expand Down

0 comments on commit 5ee24b8

Please sign in to comment.