Changeset 3919:f0be8a8c7715 for inc
- Timestamp:
- 11/06/18 13:29:04 (7 years ago)
- Branch:
- default
- Location:
- inc
- Files:
-
- 2 edited
-
admin/lib.dc.page.php (modified) (3 diffs)
-
core/class.dc.utils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r3915 r3919 172 172 ' <meta name="viewport" content="width=device-width, initial-scale=1.0" />' . "\n" . 173 173 ' <title>' . $title . ' - ' . html::escapeHTML($core->blog->name) . ' - ' . html::escapeHTML(DC_VENDOR_NAME) . ' - ' . DC_VERSION . '</title>' . "\n"; 174 175 echo self::jsUtil();176 174 177 175 if ($core->auth->user_prefs->interface->darkmode) { … … 449 447 ' <meta name="GOOGLEBOT" content="NOSNIPPET" />' . "\n"; 450 448 451 echo self::jsUtil();452 453 449 if ($core->auth->user_prefs->interface->darkmode) { 454 450 $js['darkMode'] = 1; … … 724 720 725 721 return $ret; 726 }727 728 public static function jsUtil()729 {730 $core = self::getCore();731 return self::jsLoad($core->blog->getPF('util.js'));732 722 } 733 723 -
inc/core/class.dc.utils.php
r3913 r3919 137 137 public static function jsJson($id, $vars) 138 138 { 139 // Use echo dcUtils::jsLoad($core->blog->getPF('util.js')); to use the JS getData() decoder 140 // or echo dcPage::jsUtil(); in admin mode 139 // Use echo dcUtils::jsLoad($core->blog->getPF('util.js')); to use the JS getData() decoder in public mode 141 140 $ret = '<script type="application/json" id="' . html::escapeHTML($id) . '-data">' . "\n" . 142 141 json_encode($vars, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES) . "\n" . '</script>';
Note: See TracChangeset
for help on using the changeset viewer.
