Get all Root-Category-IDs of all stores

This snippet gives you all entity_id’s of all Root-IDs of the Magento instance: /** * @return array Root-IDs of all stores */ public function getAllRootIds(){# $aRootIds = array(); $aRootIds[Mage_Catalog_Model_Category::TREE_ROOT_ID] = Mage_Catalog_Model_Category::TREE_ROOT_ID; $aAllStores = Mage::app()->getStores(); foreach ($aAllStores as $iID => $store){ $rootID = $store->getRootCategoryId(); $aRootIds[$rootID]=$rootID; } return array_keys($aRootIds); }  

Reset Icons And Logos After Upgrade

All images are laying in the root folder of dokuwiki. So you can do $> cp -f favicon.ico lib/tpl/dokuwiki/images/favicon.ico $> cp -f logo.png lib/tpl/dokuwiki/images/logo.png $> cp -f apple_icon.png lib/tpl/dokuwiki/images/apple-touch-icon.png $> touch conf/local.php $> rm -rf data/cache/* from within the root. The $> touch conf/local.php resets the update hints (yellow boxes). Or just use this bash script: […]