User tests: Successful: Unsuccessful:
JText::script()
violates SRP by acting as a setter and getter for the internal storage array of strings for use with JavaScript. This PR deprecates the getter portion of this method in favor of a new API method to get these strings and will raise a deprecation notice when the current getter behavior is used.
At 4.0, JText::script()
will have its method signature changed to require a string is always passed and will only act as a setter for the storage array.
Uses of JText::script()
with no parameters should cause a deprecation message to be logged. The new JText::getScriptStrings()
should return the contents of the internal storage array.
N/A, JText::script()
is only documented via the automatically generated API documentation.
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Intentional?
Nope, fixed.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
@joomla-cms-bot please double check this one.
Labels |
Added:
?
|
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-03 11:28:29 |
Closed_By | ⇒ | wilsonge |
Labels |
Removed:
?
|
@mbabker
Works as described.
I found the log entry in
/administrator/logs/everything.php
but not in/administrator/logs/deprecated.php
. Intentional?