Skip to content

Commit

Permalink
move twitter.class.php requires to base.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Jul 26, 2013
1 parent 687c821 commit 5901f6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions includes/base.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
require_once('template.inc.php');
require_once('status.class.php');
require_once('facilities.class.php');
require_once('twitter.class.php');

?>
4 changes: 2 additions & 2 deletions includes/status.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function newIncident($data) {
}

if (!empty($data['twitter'])) {
require_once('twitter.class.php');

$twitter = new Twitter;
$twitter->tweet("{$twitter_prefix} {$data['title']}");

Expand Down Expand Up @@ -155,7 +155,7 @@ function newUpdate($data) {
$insert = $sql->execute();

if ($data['twitterpost']) {
require_once('twitter.class.php');

$twitter = new Twitter;
$twitter->tweet($data['message']);
}
Expand Down

0 comments on commit 5901f6d

Please sign in to comment.