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

fix путей

This commit is contained in:
Mzhelskiy Maxim 2014-05-16 22:38:42 +07:00
parent 3e971c10ba
commit 9dbcde11ae
17 changed files with 43 additions and 46 deletions

View file

@ -288,7 +288,7 @@ class ActionIndex extends Action {
* Устанавливаем основной URL для поисковиков
*/
if ($iPage==1) {
$this->Viewer_SetHtmlCanonical(Config::Get('path.root.web').'/');
$this->Viewer_SetHtmlCanonical(Router::GetPath('/'));
}
/**
* Получаем список топиков

View file

@ -106,7 +106,7 @@ class ActionLogin extends Action {
if (getRequestStr('return-path')) {
$sUrl=getRequestStr('return-path');
}
$this->Viewer_AssignAjax('sUrlRedirect',$sUrl ? $sUrl : Config::Get('path.root.web'));
$this->Viewer_AssignAjax('sUrlRedirect',$sUrl ? $sUrl : Router::GetPath('/'));
return;
}
} else {
@ -126,7 +126,7 @@ class ActionLogin extends Action {
*/
protected function EventReactivation() {
if($this->User_GetUserCurrent()) {
Router::Location(Config::Get('path.root.web').'/');
Router::Location(Router::GetPath('/'));
}
$this->Viewer_AddHtmlTitle($this->Lang_Get('reactivation'));
@ -163,7 +163,7 @@ class ActionLogin extends Action {
* Если уже авторизирован
*/
if($this->User_GetUserCurrent()) {
Router::Location(Config::Get('path.root.web').'/');
Router::Location(Router::GetPath('/'));
}
$this->Viewer_AddHtmlTitle($this->Lang_Get('login'));
}
@ -174,7 +174,7 @@ class ActionLogin extends Action {
protected function EventExit() {
$this->Security_ValidateSendForm();
$this->User_Logout();
Router::Location(Config::Get('path.root.web').'/');
Router::Location(Router::GetPath('/'));
}
/**
* Ajax запрос на восстановление пароля

View file

@ -215,7 +215,7 @@ class ActionRegistration extends Action {
if (getRequestStr('return-path')) {
$sUrl=getRequestStr('return-path');
}
$this->Viewer_AssignAjax('sUrlRedirect',$sUrl ? $sUrl : Config::Get('path.root.web'));
$this->Viewer_AssignAjax('sUrlRedirect',$sUrl ? $sUrl : Router::GetPath('/'));
$this->Message_AddNoticeSingle($this->Lang_Get('registration_ok'));
}
} else {

View file

@ -61,7 +61,7 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Config::Get('view.name').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
@ -101,11 +101,11 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['description']=Config::Get('path.root.web').' / RSS channel';
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Router::GetPath('/').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/
@ -145,11 +145,11 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['description']=Config::Get('path.root.web').' / RSS channel';
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Router::GetPath('/').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/
@ -192,11 +192,11 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['description']=Config::Get('path.root.web').' / RSS channel';
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Router::GetPath('/').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/
@ -233,11 +233,11 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['description']=Config::Get('path.root.web').' / RSS channel';
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Router::GetPath('/').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/
@ -278,11 +278,11 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['description']=Config::Get('path.root.web').' / '.$oBlog->getTitle().' / RSS channel';
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=Router::GetPath('/').' / '.$oBlog->getTitle().' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/
@ -328,13 +328,13 @@ class ActionRss extends Action {
* Формируем данные канала RSS
*/
$aChannel['title']=Config::Get('view.name');
$aChannel['link']=Config::Get('path.root.web');
$aChannel['link']=Router::GetPath('/');
$aChannel['description']=($this->sUserLogin)
? Config::Get('path.root.web').' / '.$oUser->getLogin().' / RSS channel'
: Config::Get('path.root.web').' / RSS channel';
? Router::GetPath('/').' / '.$oUser->getLogin().' / RSS channel'
: Router::GetPath('/').' / RSS channel';
$aChannel['language']='ru';
$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
$aChannel['generator']=Config::Get('path.root.web');
$aChannel['generator']=Router::GetPath('/');
/**
* Формируем записи RSS
*/

View file

@ -532,7 +532,7 @@ $config['head']['default']['js'] = array(
"___path.application.web___/frontend/common/js/more.js",
"___path.application.web___/frontend/common/js/init.js",
"http://yandex.st/share/share.js" => array('merge'=>false),
"//yandex.st/share/share.js" => array('merge'=>false),
);
$config['head']['default']['css'] = array(

View file

@ -6,9 +6,9 @@
<atom:link href="{$PATH_WEB_CURRENT}/" rel="self" type="application/rss+xml" />
<description><![CDATA[{$aChannel.description}]]></description>
<language>{$aChannel.language}</language>
<managingEditor>{$aChannel.managingEditor} ({cfg name='path.root.web'})</managingEditor>
<webMaster>{$aChannel.managingEditor} ({cfg name='path.root.web'})</webMaster>
<copyright>{cfg name='path.root.web'}</copyright>
<managingEditor>{$aChannel.managingEditor} ({Router::GetPath('/')})</managingEditor>
<webMaster>{$aChannel.managingEditor} ({Router::GetPath('/')})</webMaster>
<copyright>{Router::GetPath('/')}</copyright>
<generator>{$aChannel.generator}</generator>
{foreach $aItems as $oItem}

View file

@ -6,7 +6,7 @@
<LongName>{$sHtmlDescription}</LongName>
<Image height="64" width="64" type="image/png">{cfg name='path.skin.assets.web'}/images/favicons/opensearch.png</Image>
<Image height="16" width="16" type="image/vnd.microsoft.icon">{cfg name='path.skin.assets.web'}/images/favicons/favicon.ico</Image>
<Developer>{cfg name='view.name'} ({cfg name='path.root.web'})</Developer>
<Developer>{cfg name='view.name'} ({Router::GetPath('/')})</Developer>
<Attribution>
© «{cfg name='view.name'}»
</Attribution>

View file

@ -68,7 +68,7 @@
{block name='content'}{/block}
<br>
<br>
{$aLang.notify_regards} <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
{$aLang.notify_regards} <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
</td>
</tr>
</table>
@ -81,7 +81,7 @@
<tr>
<td valign="center">
<img src="{$sImagesDir}/blank.gif" width="27" height="10" style="vertical-align: middle">
<a href="{cfg name='path.root.web'}" style="color: #{$sFooterLinkColor} !important;">{cfg name='view.name'}</a>
<a href="{Router::GetPath('/')}" style="color: #{$sFooterLinkColor} !important;">{cfg name='view.name'}</a>
</td>
</tr>
</table>

View file

@ -1,13 +1,10 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Пользователь <a href="{$oUserFrom->getUserWebPath()}">{$oUserFrom->getDisplayName()}</a> пригласил вас зарегистрироваться на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
Пользователь <a href="{$oUserFrom->getUserWebPath()}">{$oUserFrom->getDisplayName()}</a> пригласил вас зарегистрироваться на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
<br>
<br>
Код приглашения: <b>{$oInvite->getCode()}</b>
<br>
Для регистрации вам будет необходимо ввести код приглашения на <a href="{router page='login'}">странице входа</a>
<br>
<br>
С уважением, администрация сайта <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
Для регистрации вам будет необходимо ввести код приглашения на <a href="{router page='login'}">странице входа</a>
{/block}

View file

@ -1,7 +1,7 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Вы запросили повторную активацию на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
Вы запросили повторную активацию на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
<br>
<br>
Ссылка на активацию аккаунта:

View file

@ -1,7 +1,7 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Вы зарегистрировались на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
Вы зарегистрировались на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
<br>
<br>
Ваши регистрационные данные:<br>

View file

@ -1,7 +1,7 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Вы зарегистрировались на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>
Вы зарегистрировались на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>
<br>
<br>
Ваши регистрационные данные:<br>

View file

@ -1,6 +1,6 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Если вы хотите сменить себе пароль на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>, то перейдите по ссылке ниже:<br>
Если вы хотите сменить себе пароль на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>, то перейдите по ссылке ниже:<br>
<a href="{router page='login'}reminder/{$oReminder->getCode()}/">{router page='login'}reminder/{$oReminder->getCode()}/</a>
{/block}

View file

@ -1,7 +1,7 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Вами отправлен запрос на смену e-mail адреса пользователя <a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a> на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>.
Вами отправлен запрос на смену e-mail адреса пользователя <a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a> на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>.
<br>
<br>
Старый e-mail: <b>{$oChangemail->getMailFrom()}</b><br>

View file

@ -1,7 +1,7 @@
{extends file='components/email/email.tpl'}
{block name='content'}
Вами отправлен запрос на смену e-mail адреса пользователя <a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a> на сайте <a href="{cfg name='path.root.web'}">{cfg name='view.name'}</a>.
Вами отправлен запрос на смену e-mail адреса пользователя <a href="{$oUser->getUserWebPath()}">{$oUser->getDisplayName()}</a> на сайте <a href="{Router::GetPath('/')}">{cfg name='view.name'}</a>.
<br>
<br>
Старый e-mail: <b>{$oChangemail->getMailFrom()}</b><br>

View file

@ -5,7 +5,7 @@
{extends 'components/layout/layout.tpl'}
{block 'layout_head_styles' append}
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700&amp;subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,700&amp;subset=latin,cyrillic' rel='stylesheet' type='text/css'>
{/block}
{block 'layout_head' append}

@ -1 +1 @@
Subproject commit b63760730301542ecd47306b923ee108debf160c
Subproject commit 954b100d813c7219f0085e65003e67cb34b29bf7