[LIB_REFACTOR] Moving files into separate semantic categories

This commit is contained in:
Miguel Dantas 2019-08-22 18:06:14 +01:00 committed by Diogo Cordeiro
parent 7d6c6edab3
commit 58bde08425
329 changed files with 52 additions and 52 deletions

View File

@ -32,8 +32,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/profilelist.php'; require_once INSTALLDIR . '/lib/profilelist.php';
require_once INSTALLDIR.'/lib/publicgroupnav.php'; require_once INSTALLDIR . '/lib/publicgroupnav.php';
/** /**
* List of featured users * List of featured users

View File

@ -31,8 +31,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once(INSTALLDIR.'/lib/profilelist.php'); require_once(INSTALLDIR . '/lib/profilelist.php');
require_once INSTALLDIR.'/lib/publicgroupnav.php'; require_once INSTALLDIR . '/lib/publicgroupnav.php';
/** /**
* List of group members * List of group members

View File

@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/grouplist.php'; require_once INSTALLDIR . '/lib/grouplist.php';
/** /**
* Latest groups * Latest groups

View File

@ -33,7 +33,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/searchaction.php'; require_once INSTALLDIR . '/lib/searchaction.php';
/** /**
* Notice search action class. * Notice search action class.

View File

@ -33,7 +33,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/mail.php'; require_once INSTALLDIR . '/lib/mail.php';
/** /**
* Nudge a user action class. * Nudge a user action class.

View File

@ -32,8 +32,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/searchaction.php'; require_once INSTALLDIR . '/lib/searchaction.php';
require_once INSTALLDIR.'/lib/profilelist.php'; require_once INSTALLDIR . '/lib/profilelist.php';
/** /**
* People search action class. * People search action class.

View File

@ -35,7 +35,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/peopletaglist.php'; require_once INSTALLDIR . '/lib/peopletaglist.php';
// cache 3 pages // cache 3 pages
define('PEOPLETAG_CACHE_WINDOW', PEOPLETAGS_PER_PAGE*3 + 1); define('PEOPLETAG_CACHE_WINDOW', PEOPLETAGS_PER_PAGE*3 + 1);

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once(INSTALLDIR.'/lib/profilelist.php'); require_once(INSTALLDIR . '/lib/profilelist.php');
/** /**
* List of people tagged by the user with a tag * List of people tagged by the user with a tag

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/peopletaglist.php'; require_once INSTALLDIR . '/lib/peopletaglist.php';
class PeopletagsbyuserAction extends Action class PeopletagsbyuserAction extends Action
{ {

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/peopletaglist.php'; require_once INSTALLDIR . '/lib/peopletaglist.php';
class PeopletagsforuserAction extends Action class PeopletagsforuserAction extends Action
{ {

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once(INSTALLDIR.'/lib/profilelist.php'); require_once(INSTALLDIR . '/lib/profilelist.php');
/** /**
* List of peopletag subscribers * List of peopletag subscribers

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/peopletaglist.php'; require_once INSTALLDIR . '/lib/peopletaglist.php';
class PeopletagsubscriptionsAction extends Action class PeopletagsubscriptionsAction extends Action
{ {

View File

@ -31,7 +31,7 @@ if (!defined('GNUSOCIAL')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/noticelist.php'; require_once INSTALLDIR . '/lib/noticelist.php';
/** /**
* Show a single notice * Show a single notice

View File

@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/grouplist.php'; require_once INSTALLDIR . '/lib/grouplist.php';
/** /**
* User groups page * User groups page

View File

@ -573,7 +573,7 @@ class Memcached_DataObject extends Safe_DataObject
function getSearchEngine($table) function getSearchEngine($table)
{ {
require_once INSTALLDIR.'/lib/search_engines.php'; require_once INSTALLDIR . '/lib/search_engines.php';
if (Event::handle('GetSearchEngine', array($this, $table, &$search_engine))) { if (Event::handle('GetSearchEngine', array($this, $table, &$search_engine))) {
if ('mysql' === common_config('db', 'type')) { if ('mysql' === common_config('db', 'type')) {

View File

@ -1890,7 +1890,7 @@ class Notice extends Managed_DataObject
$recipientIds = $this->getReplies(); $recipientIds = $this->getReplies();
if (Event::handle('StartNotifyMentioned', array($this, &$recipientIds))) { if (Event::handle('StartNotifyMentioned', array($this, &$recipientIds))) {
require_once INSTALLDIR.'/lib/mail.php'; require_once INSTALLDIR . '/lib/mail.php';
foreach ($recipientIds as $recipientId) { foreach ($recipientIds as $recipientId) {
try { try {

View File

@ -359,7 +359,7 @@ class UserActivityStream extends AtomUserNoticeFeed
function writeJSON($handle) function writeJSON($handle)
{ {
require_once INSTALLDIR.'/lib/activitystreamjsondocument.php'; require_once INSTALLDIR . '/lib/activitystreamjsondocument.php';
fwrite($handle, '{"items": ['); fwrite($handle, '{"items": [');
$this->renderEntries(Feed::JSON, $handle); $this->renderEntries(Feed::JSON, $handle);
fwrite($handle, ']}'); fwrite($handle, ']}');

View File

@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/servererroraction.php'; require_once INSTALLDIR . '/lib/servererroraction.php';
/** /**
* Class for displaying DB Errors * Class for displaying DB Errors

Some files were not shown because too many files have changed in this diff Show More