Alterações do Joomla 1.5.4 para 1.5.5
Enviado: 30 Jul 2008, 11:12
Olá pessoal, eu modifiquei muita coisa em meu Joomla e se eu apenas jogar os arquivos de alretações pode zuar tudo o que eu fiz por isso fui passo a passo e marquei tudo o que foi alterado do Joomla 1.5.4 para o Joomla 1.5.5, se alguem tiver interesse esta ai...
- No arquivo includes/router.php na linha 236 no arquivo original esta:
$path = JPATH_BASE.DS.'components'.DS.$component.DS.'router.php';
Na versão 1.5.5 foi alterado para:
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';
- Na linha 288
$path = JPATH_BASE.DS.'components'.DS.$component.DS.'router.php';
Na versão 1.5.5 foi alterado para:
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';
- O arquivo includes/js/dtree/dtree.js, mudou bastante coisa
- No arquivo libraries/joomla/database/table/menutypes.php na linha 52 foi alterado de:
if (strstr( $this->menutype, '\'' ))
{
$this->setError(JText::_( 'The menu name cannot contain a \'', true ));
return false;
}
para:
$this->menutype = JFilterOutput::stringURLSafe($this->menutype);
if(empty($this->menutype)) {
$this->setError( "Cannot save: Empty menu type" );
return false;
}
Na linha 79:
$this->setError( "Cannot save: Duplicate menu type '$this->menutype'" );
para:
$this->setError( "Cannot save: Duplicate menu type '{$this->menutype}'" );
- No arquivo plugins/content/pagebreak.php na linha 36:
$regex = '#<hr(.*)class=\"system-pagebreak\"(.*)\/>#iU';
para:
$regex = '#<hr([^>]*?)class=(\"|\')system-pagebreak(\"|\')([^>]*?)\/*>#iU';
- Na linha 55:
if ( JString::strpos( $row->text, 'class="system-pagebreak' ) === false ) {
para:
if ( strpos( $row->text, 'class="system-pagebreak' ) === false && strpos( $row->text, 'class=\'system-pagebreak' ) === false ) {
- No arquivo plugins/editors-xtd/readmore.php na linha 62:
if (content.match(/<hr id=\"system-readmore\" \/>/)) {
para:
if (content.match(/<hr\s+id=(\"|')system-readmore(\"|')\s*\/*>/i)) {
- No arquivo plugins/search/categories.php abaixo da linha 47 foi acrescentado a seguinte variavel:
$searchText = $text;
- Na linha 82:
$query = 'SELECT a.title, a.description AS text, "" AS created,'
para:
$query = 'SELECT a.title, a.description AS text, "" AS created, a.name,'
- No retorno tambem foi alterado, na linha 107:
return $rows;
acrescentou:
$return = array();
foreach($rows AS $key => $category) {
if(searchHelper::checkNoHTML($category, $text, array('name', 'title', 'text'))) {
$return[] = $category;
}
}
return $return;
- No arquivo plugins/search/content.php, na linha 51 foi acrescentada a seguinte variavel
$searchText = $text;
- Na linha 80:
$wheres2[] = 'LOWER(a.title) LIKE '.$text;
$wheres2[] = 'LOWER(a.introtext) LIKE '.$text;
$wheres2[] = 'LOWER(a.`fulltext`) LIKE '.$text;
$wheres2[] = 'LOWER(a.metakey) LIKE '.$text;
$wheres2[] = 'LOWER(a.metadesc) LIKE '.$text;
para:
$wheres2[] = 'a.title LIKE '.$text;
$wheres2[] = 'a.introtext LIKE '.$text;
$wheres2[] = 'a.`fulltext` LIKE '.$text;
$wheres2[] = 'a.metakey LIKE '.$text;
$wheres2[] = 'a.metadesc LIKE '.$text;
- Na linha 96:
$wheres2[] = 'LOWER(a.title) LIKE '.$word;
$wheres2[] = 'LOWER(a.introtext) LIKE '.$word;
$wheres2[] = 'LOWER(a.`fulltext`) LIKE '.$word;
$wheres2[] = 'LOWER(a.metakey) LIKE '.$word;
$wheres2[] = 'LOWER(a.metadesc) LIKE '.$word;
para:
$wheres2[] = 'a.title LIKE '.$word;
$wheres2[] = 'a.introtext LIKE '.$word;
$wheres2[] = 'a.`fulltext` LIKE '.$word;
$wheres2[] = 'a.metakey LIKE '.$word;
$wheres2[] = 'a.metadesc LIKE '.$word;
- Na linha 137:
$query = 'SELECT a.title AS title,'
para:
$query = 'SELECT a.title AS title, a.metadesc, a.metakey,'
- Na linha 177:
$query = 'SELECT id, a.title AS title, a.created AS created,'
para:
$query = 'SELECT id, a.title AS title, a.created AS created, a.metadesc, a.metakey, '
- Na linha 210:
$query = 'SELECT a.title AS title,'
para:
$query = 'SELECT a.title AS title, a.metadesc, a.metakey,'
- Os comandos do if da linha 246:
foreach($rows as $row)
{
$results = array_merge($results, (array) $row);
}
para:
foreach($rows as $row)
{
$new_row = array();
foreach($row AS $key => $article) {
if(searchHelper::checkNoHTML($article, $searchText, array('text', 'title', 'metadesc', 'metakey'))) {
$new_row[] = $article;
}
}
$results = array_merge($results, (array) $new_row);
}
- No arquivo plugins/search/newsfreeds.php, na linha 70:
$wheres2[] = 'LOWER(a.name) LIKE '.$text;
$wheres2[] = 'LOWER(a.link) LIKE '.$text;
para:
$wheres2[] = 'a.name LIKE '.$text;
$wheres2[] = 'a.link LIKE '.$text;
- Na linha 84:
$wheres2[] = 'LOWER(a.name) LIKE '.$word;
$wheres2[] = 'LOWER(a.link) LIKE '.$word;
para:
$wheres2[] = 'a.name LIKE '.$word;
$wheres2[] = 'a.link LIKE '.$word;
- No arquivo plugins/search/sections.php, abaixo da linha 45 foi acrescentada a seguinte variavel:
$searchText = $text;
- Na linha 80:
$query = 'SELECT a.title AS title, a.description AS text,'
para:
$query = 'SELECT a.title AS title, a.description AS text, a.name, '
- No retorno da linha 103:
return $rows;
para:
$return = array();
foreach($rows AS $key => $section) {
if(searchHelper::checkNoHTML($section, $searchText, array('name', 'title', 'text'))) {
$return[] = $section;
}
}
return $return;
- No arquivo plugins/search/weblinks.php, abaixo da linha 45 foi acrescentada a seguinte variavel:
$searchText = $text;
- Na linha 73:
$wheres2[] = 'LOWER(a.url) LIKE '.$text;
$wheres2[] = 'LOWER(a.description) LIKE '.$text;
$wheres2[] = 'LOWER(a.title) LIKE '.$text;
para:
$wheres2[] = 'a.url LIKE '.$text;
$wheres2[] = 'a.description LIKE '.$text;
$wheres2[] = 'a.title LIKE '.$text;
- Na linha 88:
$wheres2[] = 'LOWER(a.url) LIKE '.$word;
$wheres2[] = 'LOWER(a.description) LIKE '.$word;
$wheres2[] = 'LOWER(a.title) LIKE '.$word;
para:
$wheres2[] = 'a.url LIKE '.$word;
$wheres2[] = 'a.description LIKE '.$word;
$wheres2[] = 'a.title LIKE '.$word;
- Na linha 120:
$query = 'SELECT a.title AS title, a.description AS text, a.date AS created,'
para:
$query = 'SELECT a.title AS title, a.description AS text, a.date AS created, a.url, '
- No retur da linha 140:
return $rows;
para:
$return = array();
foreach($rows AS $key => $weblink) {
if(searchHelper::checkNoHTML($weblink, $searchText, array('url', 'text', 'title'))) {
$return[] = $weblink;
}
}
return $return;
- No arquivo plugins/system/legacy.php foi acrescentado abaixo da linha 255 as seguintes linhas:
$mosmsg = JRequest::getVar( 'mosmsg' );
$mainframe->enqueueMessage( $mosmsg );
- No arquivo plugins/system/self.php, na linha 61:
$regex = '#(src|href)="(?!/|'.$protocols.'|\#)([^"]*)"#m';
para:
$regex = '#(src|href)="(?!/|'.$protocols.'|\#|\')([^"]*)"#m';
Tambem foi alterado as pastas componentes e modulos da raiz e principal, porem não conferi arquivo por arquivo ok?
Abraço a todos...wes[]s
- No arquivo includes/router.php na linha 236 no arquivo original esta:
$path = JPATH_BASE.DS.'components'.DS.$component.DS.'router.php';
Na versão 1.5.5 foi alterado para:
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';
- Na linha 288
$path = JPATH_BASE.DS.'components'.DS.$component.DS.'router.php';
Na versão 1.5.5 foi alterado para:
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';
- O arquivo includes/js/dtree/dtree.js, mudou bastante coisa
- No arquivo libraries/joomla/database/table/menutypes.php na linha 52 foi alterado de:
if (strstr( $this->menutype, '\'' ))
{
$this->setError(JText::_( 'The menu name cannot contain a \'', true ));
return false;
}
para:
$this->menutype = JFilterOutput::stringURLSafe($this->menutype);
if(empty($this->menutype)) {
$this->setError( "Cannot save: Empty menu type" );
return false;
}
Na linha 79:
$this->setError( "Cannot save: Duplicate menu type '$this->menutype'" );
para:
$this->setError( "Cannot save: Duplicate menu type '{$this->menutype}'" );
- No arquivo plugins/content/pagebreak.php na linha 36:
$regex = '#<hr(.*)class=\"system-pagebreak\"(.*)\/>#iU';
para:
$regex = '#<hr([^>]*?)class=(\"|\')system-pagebreak(\"|\')([^>]*?)\/*>#iU';
- Na linha 55:
if ( JString::strpos( $row->text, 'class="system-pagebreak' ) === false ) {
para:
if ( strpos( $row->text, 'class="system-pagebreak' ) === false && strpos( $row->text, 'class=\'system-pagebreak' ) === false ) {
- No arquivo plugins/editors-xtd/readmore.php na linha 62:
if (content.match(/<hr id=\"system-readmore\" \/>/)) {
para:
if (content.match(/<hr\s+id=(\"|')system-readmore(\"|')\s*\/*>/i)) {
- No arquivo plugins/search/categories.php abaixo da linha 47 foi acrescentado a seguinte variavel:
$searchText = $text;
- Na linha 82:
$query = 'SELECT a.title, a.description AS text, "" AS created,'
para:
$query = 'SELECT a.title, a.description AS text, "" AS created, a.name,'
- No retorno tambem foi alterado, na linha 107:
return $rows;
acrescentou:
$return = array();
foreach($rows AS $key => $category) {
if(searchHelper::checkNoHTML($category, $text, array('name', 'title', 'text'))) {
$return[] = $category;
}
}
return $return;
- No arquivo plugins/search/content.php, na linha 51 foi acrescentada a seguinte variavel
$searchText = $text;
- Na linha 80:
$wheres2[] = 'LOWER(a.title) LIKE '.$text;
$wheres2[] = 'LOWER(a.introtext) LIKE '.$text;
$wheres2[] = 'LOWER(a.`fulltext`) LIKE '.$text;
$wheres2[] = 'LOWER(a.metakey) LIKE '.$text;
$wheres2[] = 'LOWER(a.metadesc) LIKE '.$text;
para:
$wheres2[] = 'a.title LIKE '.$text;
$wheres2[] = 'a.introtext LIKE '.$text;
$wheres2[] = 'a.`fulltext` LIKE '.$text;
$wheres2[] = 'a.metakey LIKE '.$text;
$wheres2[] = 'a.metadesc LIKE '.$text;
- Na linha 96:
$wheres2[] = 'LOWER(a.title) LIKE '.$word;
$wheres2[] = 'LOWER(a.introtext) LIKE '.$word;
$wheres2[] = 'LOWER(a.`fulltext`) LIKE '.$word;
$wheres2[] = 'LOWER(a.metakey) LIKE '.$word;
$wheres2[] = 'LOWER(a.metadesc) LIKE '.$word;
para:
$wheres2[] = 'a.title LIKE '.$word;
$wheres2[] = 'a.introtext LIKE '.$word;
$wheres2[] = 'a.`fulltext` LIKE '.$word;
$wheres2[] = 'a.metakey LIKE '.$word;
$wheres2[] = 'a.metadesc LIKE '.$word;
- Na linha 137:
$query = 'SELECT a.title AS title,'
para:
$query = 'SELECT a.title AS title, a.metadesc, a.metakey,'
- Na linha 177:
$query = 'SELECT id, a.title AS title, a.created AS created,'
para:
$query = 'SELECT id, a.title AS title, a.created AS created, a.metadesc, a.metakey, '
- Na linha 210:
$query = 'SELECT a.title AS title,'
para:
$query = 'SELECT a.title AS title, a.metadesc, a.metakey,'
- Os comandos do if da linha 246:
foreach($rows as $row)
{
$results = array_merge($results, (array) $row);
}
para:
foreach($rows as $row)
{
$new_row = array();
foreach($row AS $key => $article) {
if(searchHelper::checkNoHTML($article, $searchText, array('text', 'title', 'metadesc', 'metakey'))) {
$new_row[] = $article;
}
}
$results = array_merge($results, (array) $new_row);
}
- No arquivo plugins/search/newsfreeds.php, na linha 70:
$wheres2[] = 'LOWER(a.name) LIKE '.$text;
$wheres2[] = 'LOWER(a.link) LIKE '.$text;
para:
$wheres2[] = 'a.name LIKE '.$text;
$wheres2[] = 'a.link LIKE '.$text;
- Na linha 84:
$wheres2[] = 'LOWER(a.name) LIKE '.$word;
$wheres2[] = 'LOWER(a.link) LIKE '.$word;
para:
$wheres2[] = 'a.name LIKE '.$word;
$wheres2[] = 'a.link LIKE '.$word;
- No arquivo plugins/search/sections.php, abaixo da linha 45 foi acrescentada a seguinte variavel:
$searchText = $text;
- Na linha 80:
$query = 'SELECT a.title AS title, a.description AS text,'
para:
$query = 'SELECT a.title AS title, a.description AS text, a.name, '
- No retorno da linha 103:
return $rows;
para:
$return = array();
foreach($rows AS $key => $section) {
if(searchHelper::checkNoHTML($section, $searchText, array('name', 'title', 'text'))) {
$return[] = $section;
}
}
return $return;
- No arquivo plugins/search/weblinks.php, abaixo da linha 45 foi acrescentada a seguinte variavel:
$searchText = $text;
- Na linha 73:
$wheres2[] = 'LOWER(a.url) LIKE '.$text;
$wheres2[] = 'LOWER(a.description) LIKE '.$text;
$wheres2[] = 'LOWER(a.title) LIKE '.$text;
para:
$wheres2[] = 'a.url LIKE '.$text;
$wheres2[] = 'a.description LIKE '.$text;
$wheres2[] = 'a.title LIKE '.$text;
- Na linha 88:
$wheres2[] = 'LOWER(a.url) LIKE '.$word;
$wheres2[] = 'LOWER(a.description) LIKE '.$word;
$wheres2[] = 'LOWER(a.title) LIKE '.$word;
para:
$wheres2[] = 'a.url LIKE '.$word;
$wheres2[] = 'a.description LIKE '.$word;
$wheres2[] = 'a.title LIKE '.$word;
- Na linha 120:
$query = 'SELECT a.title AS title, a.description AS text, a.date AS created,'
para:
$query = 'SELECT a.title AS title, a.description AS text, a.date AS created, a.url, '
- No retur da linha 140:
return $rows;
para:
$return = array();
foreach($rows AS $key => $weblink) {
if(searchHelper::checkNoHTML($weblink, $searchText, array('url', 'text', 'title'))) {
$return[] = $weblink;
}
}
return $return;
- No arquivo plugins/system/legacy.php foi acrescentado abaixo da linha 255 as seguintes linhas:
$mosmsg = JRequest::getVar( 'mosmsg' );
$mainframe->enqueueMessage( $mosmsg );
- No arquivo plugins/system/self.php, na linha 61:
$regex = '#(src|href)="(?!/|'.$protocols.'|\#)([^"]*)"#m';
para:
$regex = '#(src|href)="(?!/|'.$protocols.'|\#|\')([^"]*)"#m';
Tambem foi alterado as pastas componentes e modulos da raiz e principal, porem não conferi arquivo por arquivo ok?
Abraço a todos...wes[]s