add config.php defines for twitter, only enable twitter pane when they are filled in

master
Andrew Dolgov 14 years ago
parent 57e24c8267
commit 392b6d0459

@ -174,6 +174,11 @@
define('ENABLE_TWEET_BUTTON', false);
// 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);
// Expected config version. Please update this option in config.php
// if necessary (after migrating all new options from this file).

@ -1329,6 +1329,8 @@
print "</div>"; #pane
if (defined('CONSUMER_KEY') && CONSUMER_KEY != '') {
print "<div id=\"pref-feeds-twitter\" dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Twitter')."\">";
$result = db_query($link, "SELECT COUNT(*) AS cid FROM ttrss_users
@ -1352,7 +1354,9 @@
onclick=\"return clearTwitterCredentials()\">".
__("Clear stored credentials")."</button>";
print "</div>";
print "</div>"; # pane
}
print "</div>"; #container

Loading…
Cancel
Save