mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 23:01:30 +00:00
add config.php defines for twitter, only enable twitter pane when they are filled in
This commit is contained in:
@@ -174,6 +174,11 @@
|
|||||||
define('ENABLE_TWEET_BUTTON', false);
|
define('ENABLE_TWEET_BUTTON', false);
|
||||||
// Enable 'tweet this' button for articles
|
// Enable 'tweet this' button for articles
|
||||||
|
|
||||||
|
define('CONSUMER_KEY', '');
|
||||||
|
define('CONSUMER_SECRET', '');
|
||||||
|
// Your OAuth instance authentication information for Twitter, visit
|
||||||
|
// http://twitter.com/oauth_clients to register your instance.
|
||||||
|
|
||||||
define('CONFIG_VERSION', 20);
|
define('CONFIG_VERSION', 20);
|
||||||
// Expected config version. Please update this option in config.php
|
// Expected config version. Please update this option in config.php
|
||||||
// if necessary (after migrating all new options from this file).
|
// if necessary (after migrating all new options from this file).
|
||||||
|
|||||||
@@ -1329,6 +1329,8 @@
|
|||||||
|
|
||||||
print "</div>"; #pane
|
print "</div>"; #pane
|
||||||
|
|
||||||
|
if (defined('CONSUMER_KEY') && CONSUMER_KEY != '') {
|
||||||
|
|
||||||
print "<div id=\"pref-feeds-twitter\" dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Twitter')."\">";
|
print "<div id=\"pref-feeds-twitter\" dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Twitter')."\">";
|
||||||
|
|
||||||
$result = db_query($link, "SELECT COUNT(*) AS cid FROM ttrss_users
|
$result = db_query($link, "SELECT COUNT(*) AS cid FROM ttrss_users
|
||||||
@@ -1352,7 +1354,9 @@
|
|||||||
onclick=\"return clearTwitterCredentials()\">".
|
onclick=\"return clearTwitterCredentials()\">".
|
||||||
__("Clear stored credentials")."</button>";
|
__("Clear stored credentials")."</button>";
|
||||||
|
|
||||||
print "</div>";
|
print "</div>"; # pane
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
print "</div>"; #container
|
print "</div>"; #container
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user