Skip to content
This repository was archived by the owner on Jul 13, 2018. It is now read-only.

Commit 4b62777

Browse files
committed
No JError
1 parent 649212f commit 4b62777

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tweet Display Back [![Analytics](https://ga-beacon.appspot.com/UA-42602973-2/twe
44

55
Compatibility
66
===============
7-
The current release of *Tweet Display Back* is compatible with Joomla! 3.4.0 and newer. Older versions of the module are available for download at https://www.babdev.com/extensions/releases/tweet-display-back
7+
The current release of *Tweet Display Back* is compatible with Joomla! 3.5.0 and newer. Older versions of the module are available for download at https://www.babdev.com/extensions/releases/tweet-display-back
88

99
Requirements
1010
===============

script.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,23 @@ class Mod_TweetDisplayBackInstallerScript
3535
* @param string $type The action being performed
3636
* @param JInstallerAdapterModule $parent The function calling this method
3737
*
38-
* @return boolean True on success, false on failure
38+
* @return boolean
3939
*
4040
* @since 3.0
41+
* @throws RuntimeException
4142
*/
4243
public function preflight($type, $parent)
4344
{
4445
// PHP Version Check
4546
if (version_compare(PHP_VERSION, $this->minimumPHPVersion, 'lt'))
4647
{
47-
JError::raiseNotice(
48-
null, JText::sprintf('MOD_TWEETDISPLAYBACK_ERROR_INSTALL_PHPVERSION', $this->minimumPHPVersion)
49-
);
50-
51-
return false;
48+
throw new RuntimeException(JText::sprintf('MOD_TWEETDISPLAYBACK_ERROR_INSTALL_PHPVERSION', $this->minimumPHPVersion));
5249
}
5350

5451
// Joomla! Version Check
5552
if (version_compare(JVERSION, $this->minimumJoomlaVersion, 'lt'))
5653
{
57-
JError::raiseNotice(
58-
null, JText::sprintf('MOD_TWEETDISPLAYBACK_ERROR_INSTALL_VERSION', $this->minimumJoomlaVersion)
59-
);
60-
61-
return false;
54+
throw new RuntimeException(JText::sprintf('MOD_TWEETDISPLAYBACK_ERROR_INSTALL_VERSION', $this->minimumJoomlaVersion));
6255
}
6356

6457
return true;

0 commit comments

Comments
 (0)