Browse Source

cleanup namespace usages for L10n

pull/8134/head
nupplaPhil 1 month ago
parent
commit
d6efc90194
No account linked to committer's email address
100 changed files with 17 additions and 120 deletions
  1. +5
    -5
      doc/AddonStorageBackend.md
  2. +0
    -1
      include/api.php
  3. +0
    -1
      include/conversation.php
  4. +0
    -3
      include/enotify.php
  5. +0
    -1
      include/items.php
  6. +0
    -1
      mod/api.php
  7. +0
    -1
      mod/cal.php
  8. +0
    -1
      mod/common.php
  9. +0
    -1
      mod/community.php
  10. +0
    -1
      mod/crepair.php
  11. +0
    -2
      mod/dfrn_confirm.php
  12. +0
    -2
      mod/dfrn_poll.php
  13. +0
    -1
      mod/dfrn_request.php
  14. +0
    -1
      mod/display.php
  15. +0
    -1
      mod/editpost.php
  16. +0
    -1
      mod/events.php
  17. +0
    -1
      mod/fbrowser.php
  18. +0
    -2
      mod/follow.php
  19. +0
    -1
      mod/fsuggest.php
  20. +0
    -1
      mod/item.php
  21. +0
    -1
      mod/lockview.php
  22. +0
    -1
      mod/lostpass.php
  23. +0
    -1
      mod/match.php
  24. +0
    -1
      mod/message.php
  25. +0
    -1
      mod/network.php
  26. +0
    -1
      mod/notes.php
  27. +0
    -3
      mod/notifications.php
  28. +0
    -1
      mod/oexchange.php
  29. +0
    -1
      mod/ostatus_subscribe.php
  30. +0
    -1
      mod/photos.php
  31. +0
    -1
      mod/ping.php
  32. +0
    -1
      mod/poke.php
  33. +0
    -1
      mod/profile_photo.php
  34. +0
    -1
      mod/profiles.php
  35. +0
    -1
      mod/profperm.php
  36. +0
    -1
      mod/redir.php
  37. +0
    -1
      mod/regmod.php
  38. +0
    -1
      mod/removeme.php
  39. +0
    -1
      mod/repair_ostatus.php
  40. +0
    -1
      mod/settings.php
  41. +0
    -1
      mod/subthread.php
  42. +0
    -1
      mod/suggest.php
  43. +0
    -1
      mod/tagger.php
  44. +0
    -1
      mod/tagrm.php
  45. +1
    -1
      mod/uimport.php
  46. +0
    -1
      mod/unfollow.php
  47. +1
    -2
      mod/update_community.php
  48. +1
    -2
      mod/update_contact.php
  49. +0
    -1
      mod/update_display.php
  50. +0
    -1
      mod/update_network.php
  51. +1
    -2
      mod/update_notes.php
  52. +1
    -2
      mod/update_profile.php
  53. +0
    -1
      mod/videos.php
  54. +0
    -1
      mod/wall_attach.php
  55. +0
    -1
      mod/wall_upload.php
  56. +0
    -1
      mod/wallmessage.php
  57. +0
    -1
      src/App/Router.php
  58. +0
    -1
      src/BaseModule.php
  59. +0
    -1
      src/Console/ArchiveContact.php
  60. +0
    -1
      src/Content/ContactSelector.php
  61. +0
    -1
      src/Content/Feature.php
  62. +0
    -1
      src/Content/ForumManager.php
  63. +0
    -1
      src/Content/Nav.php
  64. +0
    -1
      src/Content/OEmbed.php
  65. +1
    -1
      src/Content/Pager.php
  66. +0
    -1
      src/Content/Text/BBCode.php
  67. +0
    -1
      src/Content/Text/HTML.php
  68. +0
    -1
      src/Content/Widget.php
  69. +0
    -1
      src/Content/Widget/CalendarExport.php
  70. +0
    -1
      src/Content/Widget/ContactBlock.php
  71. +1
    -1
      src/Content/Widget/SavedSearches.php
  72. +0
    -1
      src/Content/Widget/TagCloud.php
  73. +1
    -1
      src/Content/Widget/TrendingTags.php
  74. +1
    -2
      src/DI.php
  75. +0
    -1
      src/Database/DBStructure.php
  76. +0
    -1
      src/Model/Contact.php
  77. +0
    -1
      src/Model/Event.php
  78. +0
    -1
      src/Model/FileTag.php
  79. +1
    -1
      src/Model/Group.php
  80. +0
    -1
      src/Model/Item.php
  81. +0
    -3
      src/Model/Mail.php
  82. +0
    -1
      src/Model/Photo.php
  83. +0
    -1
      src/Model/Profile.php
  84. +0
    -1
      src/Model/User.php
  85. +0
    -1
      src/Module/Admin/Addons/Details.php
  86. +0
    -1
      src/Module/Admin/Addons/Index.php
  87. +0
    -1
      src/Module/Admin/Blocklist/Contact.php
  88. +0
    -1
      src/Module/Admin/Blocklist/Server.php
  89. +0
    -1
      src/Module/Admin/DBSync.php
  90. +0
    -1
      src/Module/Admin/Features.php
  91. +1
    -1
      src/Module/Admin/Federation.php
  92. +0
    -1
      src/Module/Admin/Item/Delete.php
  93. +0
    -1
      src/Module/Admin/Item/Source.php
  94. +0
    -1
      src/Module/Admin/Logs/Settings.php
  95. +1
    -1
      src/Module/Admin/Logs/View.php
  96. +0
    -1
      src/Module/Admin/Queue.php
  97. +0
    -2
      src/Module/Admin/Site.php
  98. +0
    -2
      src/Module/Admin/Summary.php
  99. +0
    -1
      src/Module/Admin/Themes/Details.php
  100. +0
    -1
      src/Module/Admin/Themes/Embed.php

+ 5
- 5
doc/AddonStorageBackend.md View File

@@ -136,26 +136,26 @@ namespace Friendica\Addon\samplestorage;

use Friendica\Model\Storage\IStorage;

use Friendica\Core\Config;
use Friendica\Core\Config\IConfiguration;
use Friendica\Core\L10n;

class SampleStorageBackend implements IStorage
{
const NAME = 'Sample Storage';

/** @var Config\IConfiguration */
/** @var IConfiguration */
private $config;
/** @var \Friendica\Core\L10n */
/** @var L10n */
private $l10n;

/**
* SampleStorageBackend constructor.
* @param Config\IConfiguration $config The configuration of Friendica
* @param IConfiguration $config The configuration of Friendica
*
* You can add here every dynamic class as dependency you like and add them to a private field
* Friendica automatically creates these classes and passes them as argument to the constructor
*/
public function __construct(Config\IConfiguration $config, \Friendica\Core\L10n $l10n)
public function __construct(IConfiguration $config, L10n $l10n)
{
$this->config = $config;
$this->l10n = $l10n;

+ 0
- 1
include/api.php View File

@@ -13,7 +13,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Session;

+ 0
- 1
include/conversation.php View File

@@ -10,7 +10,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 3
include/enotify.php View File

@@ -6,12 +6,10 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\ItemContent;
@@ -20,7 +18,6 @@ use Friendica\Model\UserItem;
use Friendica\Protocol\Activity;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Emailer;
use Friendica\Util\Strings;

/**
* Creates a notification entry and possibly sends a mail

+ 0
- 1
include/items.php View File

@@ -5,7 +5,6 @@

use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
mod/api.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/cal.php View File

@@ -12,7 +12,6 @@ use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Content\Widget;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

+ 0
- 1
mod/common.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Pager;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/community.php View File

@@ -10,7 +10,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Widget\TrendingTags;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

+ 0
- 1
mod/crepair.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 2
mod/dfrn_confirm.php View File

@@ -20,7 +20,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;
@@ -29,7 +28,6 @@ use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Group;
use Friendica\Model\User;
use Friendica\Network\Probe;
use Friendica\Protocol\Activity;
use Friendica\Util\Crypto;
use Friendica\Util\DateTimeFormat;

+ 0
- 2
mod/dfrn_poll.php View File

@@ -6,13 +6,11 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Module\Security\Login;
use Friendica\Protocol\DFRN;
use Friendica\Protocol\OStatus;
use Friendica\Util\Network;

+ 0
- 1
mod/dfrn_request.php View File

@@ -14,7 +14,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
mod/display.php View File

@@ -9,7 +9,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
mod/editpost.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\Feature;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/events.php View File

@@ -8,7 +8,6 @@ use Friendica\App;
use Friendica\Content\Nav;
use Friendica\Content\Widget\CalendarExport;
use Friendica\Core\ACL;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Theme;

+ 0
- 1
mod/fbrowser.php View File

@@ -6,7 +6,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 2
mod/follow.php View File

@@ -4,10 +4,8 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Profile;

+ 0
- 1
mod/fsuggest.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\ACL;
use Friendica\Core\L10n;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;

+ 0
- 1
mod/item.php View File

@@ -21,7 +21,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Session;

+ 0
- 1
mod/lockview.php View File

@@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Group;

+ 0
- 1
mod/lostpass.php View File

@@ -6,7 +6,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/match.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\Widget;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Search;
use Friendica\Database\DBA;

+ 0
- 1
mod/message.php View File

@@ -8,7 +8,6 @@ use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\ACL;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/network.php View File

@@ -14,7 +14,6 @@ use Friendica\Content\Text\HTML;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
mod/notes.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;

+ 0
- 3
mod/notifications.php View File

@@ -8,15 +8,12 @@ use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Module\Security\Login;
use Friendica\Model\Contact;
use Friendica\Model\Introduction;

function notifications_post(App $a)
{

+ 0
- 1
mod/oexchange.php View File

@@ -3,7 +3,6 @@
* @file mod/oexchange.php
*/
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\Security\Login;

+ 0
- 1
mod/ostatus_subscribe.php View File

@@ -4,7 +4,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\DI;
use Friendica\Model\Contact;

+ 0
- 1
mod/photos.php View File

@@ -11,7 +11,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

+ 0
- 1
mod/ping.php View File

@@ -9,7 +9,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;

+ 0
- 1
mod/poke.php View File

@@ -15,7 +15,6 @@

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;

+ 0
- 1
mod/profile_photo.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

+ 0
- 1
mod/profiles.php View File

@@ -10,7 +10,6 @@ use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

+ 0
- 1
mod/profperm.php View File

@@ -4,7 +4,6 @@
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Content\Text\HTML;
use Friendica\Database\DBA;

+ 0
- 1
mod/redir.php View File

@@ -1,7 +1,6 @@
<?php

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Session;
use Friendica\Core\System;

+ 0
- 1
mod/regmod.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/removeme.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/repair_ostatus.php View File

@@ -4,7 +4,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/settings.php View File

@@ -10,7 +10,6 @@ use Friendica\Content\Nav;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

+ 0
- 1
mod/subthread.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Session;
use Friendica\Core\System;

+ 0
- 1
mod/suggest.php View File

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Widget;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
mod/tagger.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Session;
use Friendica\Core\System;

+ 0
- 1
mod/tagrm.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;

+ 1
- 1
mod/uimport.php View File

@@ -6,10 +6,10 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\UserImport;
use Friendica\Core\Renderer;
use Friendica\DI;

function uimport_post(App $a)
{

+ 0
- 1
mod/unfollow.php View File

@@ -4,7 +4,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

+ 1
- 2
mod/update_community.php View File

@@ -3,7 +3,6 @@
// See update_profile.php for documentation

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;

require_once 'mod/community.php';
@@ -20,7 +19,7 @@ function update_community_content(App $a) {
}

if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".DI::l10n()->t("[Embedded content - reload page to view]")."<br />";
$replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";

+ 1
- 2
mod/update_contact.php View File

@@ -3,7 +3,6 @@
// See update_profile.php for documentation

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Module\Contact;

@@ -20,7 +19,7 @@ function update_contact_content(App $a)
}

if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".DI::l10n()->t("[Embedded content - reload page to view]")."<br />";
$replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";

+ 0
- 1
mod/update_display.php View File

@@ -5,7 +5,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;

require_once "mod/display.php";

+ 0
- 1
mod/update_network.php View File

@@ -5,7 +5,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;

require_once "mod/network.php";

+ 1
- 2
mod/update_notes.php View File

@@ -6,7 +6,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;

require_once("mod/notes.php");
@@ -33,7 +32,7 @@ function update_notes_content(App $a) {
$text = notes_content($a, $profile_uid);

if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".DI::l10n()->t("[Embedded content - reload page to view]")."<br />";
$replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";

+ 1
- 2
mod/update_profile.php View File

@@ -6,7 +6,6 @@
*/

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Module\Profile;

@@ -31,7 +30,7 @@ function update_profile_content(App $a) {
$text = Profile::content([], $profile_uid);

if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".DI::l10n()->t("[Embedded content - reload page to view]")."<br />";
$replace = "<br />" . DI::l10n()->t("[Embedded content - reload page to view]") . "<br />";
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";

+ 0
- 1
mod/videos.php View File

@@ -7,7 +7,6 @@ use Friendica\App;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

+ 0
- 1
mod/wall_attach.php View File

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\Model\Attach;

+ 0
- 1
mod/wall_upload.php View File

@@ -10,7 +10,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Session;
use Friendica\Database\DBA;

+ 0
- 1
mod/wallmessage.php View File

@@ -3,7 +3,6 @@
* @file mod/wallmessage.php
*/
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

+ 0
- 1
src/App/Router.php View File

@@ -8,7 +8,6 @@ use FastRoute\Dispatcher;
use FastRoute\RouteCollector;
use FastRoute\RouteParser\Std;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Network\HTTPException;

/**

+ 0
- 1
src/BaseModule.php View File

@@ -2,7 +2,6 @@

namespace Friendica;

use Friendica\Core\L10n;
use Friendica\Core\Logger;

/**

+ 0
- 1
src/Console/ArchiveContact.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Console;

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Database\Database;
use Friendica\Util\Strings;
use RuntimeException;

+ 0
- 1
src/Content/ContactSelector.php View File

@@ -5,7 +5,6 @@
namespace Friendica\Content;

use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Util\Network;

+ 0
- 1
src/Content/Feature.php View File

@@ -7,7 +7,6 @@ namespace Friendica\Content;

use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;

class Feature

+ 0
- 1
src/Content/ForumManager.php View File

@@ -7,7 +7,6 @@ namespace Friendica\Content;

use Friendica\Core\Protocol;
use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
src/Content/Nav.php View File

@@ -7,7 +7,6 @@ namespace Friendica\Content;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;

+ 0
- 1
src/Content/OEmbed.php View File

@@ -13,7 +13,6 @@ use Exception;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 1
- 1
src/Content/Pager.php View File

@@ -2,8 +2,8 @@

namespace Friendica\Content;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;

/**

+ 0
- 1
src/Content/Text/BBCode.php View File

@@ -12,7 +12,6 @@ use Friendica\Content\OEmbed;
use Friendica\Content\Smilies;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
src/Content/Text/HTML.php View File

@@ -9,7 +9,6 @@ use DOMDocument;
use DOMXPath;
use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
use Friendica\DI;

+ 0
- 1
src/Content/Widget.php View File

@@ -6,7 +6,6 @@ namespace Friendica\Content;

use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;

+ 0
- 1
src/Content/Widget/CalendarExport.php View File

@@ -7,7 +7,6 @@
namespace Friendica\Content\Widget;

use Friendica\Content\Feature;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;


+ 0
- 1
src/Content/Widget/ContactBlock.php View File

@@ -8,7 +8,6 @@ namespace Friendica\Content\Widget;

use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

+ 1
- 1
src/Content/Widget/SavedSearches.php View File

@@ -2,9 +2,9 @@

namespace Friendica\Content\Widget;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

class SavedSearches
{

+ 0
- 1
src/Content/Widget/TagCloud.php View File

@@ -6,7 +6,6 @@

namespace Friendica\Content\Widget;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 1
- 1
src/Content/Widget/TrendingTags.php View File

@@ -2,8 +2,8 @@

namespace Friendica\Content\Widget;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Term;

/**

+ 1
- 2
src/DI.php View File

@@ -3,7 +3,6 @@
namespace Friendica;

use Dice\Dice;
use Friendica\Core\L10n;
use Psr\Log\LoggerInterface;

/**
@@ -158,7 +157,7 @@ abstract class DI
}

/**
* @return L10n
* @return Core\L10n
*/
public static function l10n()
{

+ 0
- 1
src/Database/DBStructure.php View File

@@ -8,7 +8,6 @@ namespace Friendica\Database;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Util\DateTimeFormat;


+ 0
- 1
src/Model/Contact.php View File

@@ -8,7 +8,6 @@ use Friendica\App\BaseURL;
use Friendica\Content\Pager;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Session;

+ 0
- 1
src/Model/Event.php View File

@@ -7,7 +7,6 @@ namespace Friendica\Model;

use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;

+ 0
- 1
src/Model/FileTag.php View File

@@ -5,7 +5,6 @@

namespace Friendica\Model;

use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\DI;


+ 1
- 1
src/Model/Group.php View File

@@ -6,11 +6,11 @@
namespace Friendica\Model;

use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

/**
* functions for interacting with the group database table

+ 0
- 1
src/Model/Item.php View File

@@ -10,7 +10,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 3
src/Model/Mail.php View File

@@ -5,13 +5,10 @@
*/
namespace Friendica\Model;

use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Photo;
use Friendica\Database\DBA;
use Friendica\Network\Probe;
use Friendica\Protocol\Activity;

+ 0
- 1
src/Model/Photo.php View File

@@ -8,7 +8,6 @@ namespace Friendica\Model;

use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;

+ 0
- 1
src/Model/Profile.php View File

@@ -13,7 +13,6 @@ use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

+ 0
- 1
src/Model/User.php View File

@@ -11,7 +11,6 @@ use DivineOmega\PasswordExposed;
use Exception;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

+ 0
- 1
src/Module/Admin/Addons/Details.php View File

@@ -4,7 +4,6 @@ namespace Friendica\Module\Admin\Addons;

use Friendica\Content\Text\Markdown;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

+ 0
- 1
src/Module/Admin/Addons/Index.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin\Addons;

use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

+ 0
- 1
src/Module/Admin/Blocklist/Contact.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin\Blocklist;

use Friendica\Content\Pager;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 1
src/Module/Admin/Blocklist/Server.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin\Blocklist;

use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

+ 0
- 1
src/Module/Admin/DBSync.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin;

use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Update;
use Friendica\Database\DBA;

+ 0
- 1
src/Module/Admin/Features.php View File

@@ -4,7 +4,6 @@ namespace Friendica\Module\Admin;

use Friendica\Content\Feature;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

+ 1
- 1
src/Module/Admin/Federation.php View File

@@ -3,9 +3,9 @@
namespace Friendica\Module\Admin;

use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

class Federation extends BaseAdminModule

+ 0
- 1
src/Module/Admin/Item/Delete.php View File

@@ -2,7 +2,6 @@

namespace Friendica\Module\Admin\Item;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Item;

+ 0
- 1
src/Module/Admin/Item/Source.php View File

@@ -2,7 +2,6 @@

namespace Friendica\Module\Admin\Item;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model;

+ 0
- 1
src/Module/Admin/Logs/Settings.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin\Logs;

use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

+ 1
- 1
src/Module/Admin/Logs/View.php View File

@@ -3,8 +3,8 @@
namespace Friendica\Module\Admin\Logs;

use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;
use Friendica\Util\Strings;


+ 0
- 1
src/Module/Admin/Queue.php View File

@@ -2,7 +2,6 @@

namespace Friendica\Module\Admin;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

+ 0
- 2
src/Module/Admin/Site.php View File

@@ -4,10 +4,8 @@ namespace Friendica\Module\Admin;

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Search;
use Friendica\Core\StorageManager;
use Friendica\Core\Theme;
use Friendica\Core\Worker;
use Friendica\Database\DBA;

+ 0
- 2
src/Module/Admin/Summary.php View File

@@ -4,7 +4,6 @@ namespace Friendica\Module\Admin;

use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Update;
@@ -16,7 +15,6 @@ use Friendica\Module\BaseAdminModule;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\FileSystem;
use Friendica\Util\Network;

class Summary extends BaseAdminModule

+ 0
- 1
src/Module/Admin/Themes/Details.php View File

@@ -3,7 +3,6 @@
namespace Friendica\Module\Admin\Themes;

use Friendica\Content\Text\Markdown;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Theme;
use Friendica\DI;

+ 0
- 1
src/Module/Admin/Themes/Embed.php View File

@@ -2,7 +2,6 @@

namespace Friendica\Module\Admin\Themes;

use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseAdminModule;

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

Loading…
Cancel
Save