[LIB_REFACTOR] Moving files into separate semantic categories
This commit is contained in:
parent
7d6c6edab3
commit
58bde08425
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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')) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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, ']}');
|
0
lib/cache.php → lib/cache/cache.php
vendored
0
lib/cache.php → lib/cache/cache.php
vendored
|
@ -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
Loading…
Reference in New Issue
Block a user