Skip to content

Commit

Permalink
more jtext
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Mar 12, 2019
1 parent b2a8996 commit d721332
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
9 changes: 5 additions & 4 deletions build/build-modules-js/namespace.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ const RootPath = require('./utils/rootpath.es6.js')._();


const jregex = /defined\('(JPATH_BASE|_JEXEC|JPATH_PLATFORM)'\) or die;/gm;
const oldClassName = 'JText';
const newClassName = 'Text';
const classUse = 'use Joomla\\CMS\\Language\\Text;';
const oldClassName = 'JRegistry';
const newClassName = 'Registry';
const classUse = 'use Joomla\\Registry\\Registry;';
const root = `${RootPath}/`;
const filesToIgnore = [
'classmap.php',
'com_finder',
]

module.exports.run = () => {
Expand Down Expand Up @@ -56,7 +57,7 @@ const readFile = (path) => {

const getInstances = (content, path) => {
//const regex = /[^\s*](?=\S)(?!\/\*\*)(?!\/\/)(?!\*)(\\?JText)/gm;
const regex = /(?=\S)(?!\/\*\*)(?!\/\/)(?!\*)(\\?JText)/gm;
const regex = /(?=\S)(?!\/\*\*)(?!\/\/)(?!\*)(\\?JRegistry)/gm;
const matches = content.match(regex);

if (matches !== null) {
Expand Down
5 changes: 1 addition & 4 deletions libraries/cms/html/behavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use Joomla\CMS\Log\Log;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use of formvalidation is deprecated use formvalidator instead.'
Log::WARNING
'deprecated');

/**
* Utility class for JavaScript behaviors
Expand Down Expand Up @@ -102,7 +99,7 @@ public static function core()
*/
public static function formvalidation()
{
Log::add('The
Log::add('The use of formvalidation is deprecated use formvalidator instead.', Log::WARNING, 'deprecated');

// Only load once
if (isset(static::$loaded[__METHOD__]))
Expand Down
3 changes: 1 addition & 2 deletions libraries/src/MVC/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

defined('JPATH_PLATFORM') or die;

use FormFactoryAwareTrait;
use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
Expand All @@ -32,7 +31,7 @@
*/
class FormController extends BaseController implements FormFactoryAwareInterface
{

use FormFactoryAwareTrait;

/**
* The context for storing internal data, e.g. record.
Expand Down
6 changes: 2 additions & 4 deletions libraries/src/MVC/Model/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\CMSObject;
use LeagcyModelLoaderTrait;
use StateBehaviorTrait;

/**
* Base class for a Joomla Model
Expand All @@ -22,8 +20,8 @@
*/
abstract class BaseModel extends CMSObject implements ModelInterface, StatefulModelInterface
{


use LeagcyModelLoaderTrait;
use StateBehaviorTrait;

/**
* The model (base) name
Expand Down

0 comments on commit d721332

Please sign in to comment.