1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 14:50:48 +03:00

fix install

This commit is contained in:
Mzhelskiy Maxim 2016-10-16 11:44:47 +07:00
parent f2fe6cc9ed
commit 993686b6a4
2 changed files with 5 additions and 2 deletions

View file

@ -61,7 +61,7 @@ class HookMain extends Hook
/**
* Запуск обработки сборщика
*/
$this->Ls_SenderRun();
//$this->Ls_SenderRun();
}
/**

View file

@ -437,13 +437,16 @@ class InstallStepUpdateVersion extends InstallStep
$iPage = 1;
$iLimitCount = 50;
$iLimitStart = 0;
while ($aTopics = $this->dbSelect("SELECT * FROM prefix_topic WHERE topic_slug = '' LIMIT {$iLimitStart},{$iLimitCount}")) {
while ($aTopics = $this->dbSelect("SELECT * FROM prefix_topic ORDER BY topic_id asc LIMIT {$iLimitStart},{$iLimitCount}")) {
$iPage++;
$iLimitStart = ($iPage - 1) * $iLimitCount;
/**
* Топики
*/
foreach ($aTopics as $aTopic) {
if ($aTopic['topic_slug']) {
continue;
}
$sSlug = InstallCore::transliteration($aTopic['topic_title']);
$sSlug = $this->GetUniqueTopicSlug($sSlug, $aTopic['topic_id']);
$sSlug = mysqli_escape_string($this->rDbLink, $sSlug);