diff --git a/_sakura/changelog.json b/_sakura/changelog.json index 78c1356..ea58e9a 100755 --- a/_sakura/changelog.json +++ b/_sakura/changelog.json @@ -3107,6 +3107,42 @@ "user": "Flashwave" } + ], + + "20151012": [ + + "eminence", + { + "type": "FIX", + "change": "Fixed Misaki template tags.", + "user": "Flashwave" + }, + { + "type": "ADD", + "change": "Readded code for testing style.", + "user": "Flashwave" + }, + { + "type": "FIX", + "change": "Fixed broken ternary in the testing style switching code.", + "user": "Flashwave" + }, + { + "type": "FIX", + "change": "Display comment counts in Misaki.", + "user": "Flashwave" + }, + { + "type": "UPD", + "change": "Redid the markup of Misaki profiles.", + "user": "Flashwave" + }, + { + "type": "REM", + "change": "Removed LIKE SELECT statement from the User class.", + "user": "Flashwave" + } + ] } diff --git a/_sakura/components/User.php b/_sakura/components/User.php index 41fb65c..e0c363b 100755 --- a/_sakura/components/User.php +++ b/_sakura/components/User.php @@ -26,17 +26,6 @@ class User ] ); - // Check if anything like the username exists - if (empty($this->data)) { - $this->data = Database::fetch( - 'users', - false, - [ - 'username_clean' => ['%' . Main::cleanString($uid, true) . '%', 'LIKE'], - ] - ); - } - // Check if the user actually exists if (empty($this->data)) { // If not assign as the fallback user diff --git a/_sakura/sakura.php b/_sakura/sakura.php index 1cd2ecd..ffb43ba 100755 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20151011'); +define('SAKURA_VERSION', '20151012'); define('SAKURA_VLABEL', 'Eminence'); define('SAKURA_COLOUR', '#6C3082'); define('SAKURA_STABLE', false); @@ -105,12 +105,14 @@ $templateName = defined('SAKURA_MANAGE') ? Configuration::getConfig('manage_style') : ( - isset($currentUser->data['user_data']['userOptions']['useMisaki']) && - $currentUser->data['user_data']['userOptions']['useMisaki'] && - $currentUser->checkPermission('SITE', 'ALTER_PROFILE') -) ? -'misaki' : -Configuration::getConfig('site_style'); + ( + isset($currentUser->data['user_data']['userOptions']['useMisaki']) && + $currentUser->data['user_data']['userOptions']['useMisaki'] && + $currentUser->checkPermission('SITE', 'ALTER_PROFILE') + ) ? + 'misaki' : + Configuration::getConfig('site_style') +); if (!defined('SAKURA_NO_TPL')) { // Initialise templating engine diff --git a/_sakura/templates/misaki/elements/newsPost.tpl b/_sakura/templates/misaki/elements/newsPost.tpl index c5a10e3..ff12a4b 100755 --- a/_sakura/templates/misaki/elements/newsPost.tpl +++ b/_sakura/templates/misaki/elements/newsPost.tpl @@ -3,7 +3,7 @@ {{ post.news_title }}