Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Enable beta path text field to a simpler boolean checkbox only
- Loading branch information
1 parent
27be82c
commit 96a17fe
Showing
7 changed files
with
67 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,11 @@ class AppUpgraderClient { | |
* @return AppUpgraderClient | ||
*/ | ||
public function __construct() { | ||
$option_dao = DAOFactory::getDAO('OptionDAO'); | ||
$beta_path = $option_dao->getOptionByName(OptionDAO::APP_OPTIONS, 'beta_update_path'); | ||
if (isset($beta_path)) { | ||
self::$UPDATE_URL = $beta_path->option_value; | ||
$config = Config::getInstance(); | ||
$is_in_beta = $config->getValue('is_subcribed_to_beta'); | ||
$is_in_beta = isset($is_in_beta)?$is_in_beta:false; | ||
if ($is_in_beta) { | ||
self::$UPDATE_URL = 'http://thinkupapp.com/version_download_beta.php'; | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
mwilkie
Contributor
|
||
} | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TYPO! subcribed