Skip to content

Commit

Permalink
Fix Restler bug returning warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 17, 2016
1 parent cd75b43 commit e6196f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dev/dolibarr_changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,15 @@ JQUERYFILETREE:
RESTLER:
--------

if ($className == 'Luracast\Restler\string') return;
if ($className == 'Luracast\Restler\mixed') return;

* Add 2 lines into function
private function alias($className, $currentClass)
{
...
to get

private function alias($className, $currentClass)
{
if ($className == 'Luracast\Restler\string') return;
if ($className == 'Luracast\Restler\mixed') return;
...

Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ private function loadThisLoader($className, $loader) {
*/
private function alias($className, $currentClass)
{
if ($className == 'Luracast\Restler\string') return;
if ($className == 'Luracast\Restler\mixed') return;

if ($className != $currentClass
&& false !== strpos($className, $currentClass))
if (!class_exists($currentClass, false)
Expand Down

0 comments on commit e6196f6

Please sign in to comment.