Răsfoiți Sursa

Upgrade script from 15.0.0-A1 to 15.0.0-A2

Alex Trofimov 1 an în urmă
părinte
comite
0052137f1f

+ 2 - 2
upgrade/files/15.0.0.A1-15.0.0.A2/files/plugins/composer/installed.php

@@ -3,7 +3,7 @@
         'name' => 'unaio/una',
         'pretty_version' => 'dev-master',
         'version' => 'dev-master',
-        'reference' => 'd8755b93d087b7b60396f68e17d80592480e5e24',
+        'reference' => 'b8704641592e600d2515d5c94e29e621e006963e',
         'type' => 'library',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -347,7 +347,7 @@
         'unaio/una' => array(
             'pretty_version' => 'dev-master',
             'version' => 'dev-master',
-            'reference' => 'd8755b93d087b7b60396f68e17d80592480e5e24',
+            'reference' => 'b8704641592e600d2515d5c94e29e621e006963e',
             'type' => 'library',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

+ 1 - 1
upgrade/files/15.0.0.A1-15.0.0.A2/files/plugins_public/highlight/highlight.min.js

@@ -1,5 +1,5 @@
 /*!
-  Highlight.js v11.11.1 (git: d8755b93d0)
+  Highlight.js v11.11.1 (git: b870464159)
   (c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
   License: BSD-3-Clause
  */

+ 10 - 5
upgrade/files/15.0.0.A1-15.0.0.A2/files/template/scripts/BxBaseMenuAccountNotifications.php

@@ -17,12 +17,17 @@ class BxBaseMenuAccountNotifications extends BxTemplMenu
     {
         parent::__construct ($aObject, $oTemplate);
 
-        $oProfile = BxDolProfile::getInstance();
-        $oModule = BxDolModule::getInstance($oProfile->getModule());
-        $this->addMarkers(array(
+        $aMarkers = [
             'studio_url' => BX_DOL_URL_STUDIO,
-            'own_profile_url' => 'page.php?i=' . $oModule->_oConfig->CNF['URI_VIEW_ENTRY'],
-        ));        
+        ];
+
+        if(($oProfile = BxDolProfile::getInstance()) !== false && ($sModule = $oProfile->getModule()) != 'system') {
+            $oModule = BxDolModule::getInstance($sModule);
+            if($oModule !== null && isset($oModule->_oConfig->CNF['URI_VIEW_ENTRY']))
+                $aMarkers['own_profile_url'] = 'page.php?i=' . $oModule->_oConfig->CNF['URI_VIEW_ENTRY'];
+        }
+
+        $this->addMarkers($aMarkers);        
     }
 
     protected function getMenuItemsRaw ()