Skip to content

Commit

Permalink
Version 0.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
psthmn committed Dec 13, 2015
2 parents 0a0a8ba + e918fc8 commit 2a5b495
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions modx.ddtools.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* modx ddTools class
* @version 0.14.2 (2015-11-05)
* @version 0.14.3 (2015-12-13)
*
* @uses modx 1.0.10 (Evo)
*
* @link http://code.divandesign.biz/modx/ddtools/0.14.1
* @link http://code.divandesign.biz/modx/ddtools/0.14.3
*
* @copyright 2015, DivanDesign
* http://www.DivanDesign.biz
Expand Down Expand Up @@ -1307,9 +1307,11 @@ public static function generateRandomString($length = 8, $chars = 'abcdefghijklm
}
}

//Решение спорное, но делать Синглтон очень не хотелось
foreach (ddTools::$tables as $key => $val){
ddTools::$tables[$key] = $modx->getFullTableName($key);
if(isset($modx)){
//Решение спорное, но делать Синглтон очень не хотелось
foreach (ddTools::$tables as $key => $val){
ddTools::$tables[$key] = $modx->getFullTableName($key);
}
}

if (method_exists($modx, 'getVersionData')){
Expand Down

0 comments on commit 2a5b495

Please sign in to comment.