Code: Select all
Index: cmsimple/cms.php
===================================================================
--- cmsimple/cms.php (revision 1490)
+++ cmsimple/cms.php (working copy)
@@ -300,9 +300,13 @@
die("Config file {$pth['file']['config']} missing");
}
// removed from the core in XH 1.6, but left for compatibility with plugins.
-$cf['security']['type']='page';
-$cf['scripting']['regexp']='#CMSimple (.*?)#';
+$cf['security']['type'] = 'page';
+$cf['scripting']['regexp'] = '#CMSimple (.*?)#';
+// removed from the core in XH 1.7, but left for compatibility with extensions
+$cf['xhtml']['endtags'] = '';
+$cf['xhtml']['amp'] = 'true';
+
foreach (array('userfiles', 'downloads', 'images', 'media') as $temp) {
// for compatibility with older version's config files
if (!isset($cf['folders'][$temp])) {
Index: cmsimple/config.php
===================================================================
--- cmsimple/config.php (revision 1489)
+++ cmsimple/config.php (working copy)
@@ -41,8 +41,6 @@
$cf['uri']['seperator']="/";
$cf['uri']['word_separator']="-";
$cf['uri']['length']="200";
-$cf['xhtml']['endtags']="";
-$cf['xhtml']['amp']="true";
$cf['editmenu']['scroll']="";
$cf['editmenu']['external']="";
$cf['title']['format']="{SITE} – {PAGE}";
Index: cmsimple/functions.php
===================================================================
--- cmsimple/functions.php (revision 1490)
+++ cmsimple/functions.php (working copy)
@@ -1250,16 +1250,17 @@
*
* @param string $s The contents of the tag.
*
+ * @return string The (X)HTML.
+ *
* @global array The configuration of the core.
*
- * @return string The (X)HTML.
+ * @deprecated since 1.7
*/
function tag($s)
{
- global $cf;
+ trigger_error('Function tag() is deprecated', E_USER_DEPRECATED);
- $t = $cf['xhtml']['endtags'] == 'true' ? ' /' : '';
- return '<' . $s . $t . '>';
+ return '<' . $s . '>';
}
/**
@@ -1447,8 +1448,8 @@
$errtype = "Unknow error type [$errno]";
}
- $errors[] = "<b>$errtype:</b> $errstr" . tag('br') . "$errfile:$errline"
- . tag('br') . "\n";
+ $errors[] = "<b>$errtype:</b> $errstr" . '<br>' . "$errfile:$errline"
+ . '<br>' . "\n";
if ($errno === E_USER_ERROR) {
die($errors[count($errors) - 1]);
Index: cmsimple/languages/de.php
===================================================================
--- cmsimple/languages/de.php (revision 1489)
+++ cmsimple/languages/de.php (working copy)
@@ -124,7 +124,6 @@
$tx['help']['uri_seperator']="Das Zeichen, das die Namen von Seiten und Unterseiten in der URL trennt.";
$tx['help']['uri_word_separator']="Das Zeichen, das Wörter in der URL trennt.";
$tx['help']['uri_length']="Die URLs der Seiten werden ab dieser Länge abgeschnitten. Das könnte sich in einer zukünftigen Version ändern, so dass es das Beste ist, kürzere Seitenüberschriften zu verwenden (z.B. durch die Verwendung von Seite→Andere Seitenüberschrift).";
-$tx['help']['xhtml_endtags']="Anklicken wenn Sie XHTML-Ausgabe wünschen. Die für XHTML-Auszeichnungselemente erforderlichen Abschluss-Schrägstriche werden automatisch erzeugt.";
$tx['help']['folders_userfiles']="Der Basisordner aller Benutzerdateien.";
$tx['help']['folders_downloads']="Ein Unterordner der Benutzerdateien.";
Index: cmsimple/languages/en.php
===================================================================
--- cmsimple/languages/en.php (revision 1489)
+++ cmsimple/languages/en.php (working copy)
@@ -123,7 +123,6 @@
$tx['help']['uri_seperator']="The character which separates names of pages and sub pages in the URL.";
$tx['help']['uri_word_separator']="The character which separates words in the URL.";
$tx['help']['uri_length']="The URLs of the pages will be truncated at this length. This might change in a future release, so it's best to use shorter page headings (e.g. by using Page→Alternative heading).";
-$tx['help']['xhtml_endtags']="Check this, if you want XHTML-output. The required endslashes in standalone tags will be created automatically.";
$tx['help']['folders_userfiles']="The base folder of all userfiles.";
$tx['help']['folders_downloads']="A subfolder of userfiles.";
Index: cmsimple/languages/metade.php
===================================================================
--- cmsimple/languages/metade.php (revision 1489)
+++ cmsimple/languages/metade.php (working copy)
@@ -1,6 +1,5 @@
<?php
-$mtx['amp']="amp";
$mtx['author']="Autor";
$mtx['backup']="Sicherung";
$mtx['captcha']="CAPTCHA";
@@ -10,7 +9,6 @@
$mtx['editmenu']="Bearbeitungsmenü (Admin-Menü)";
$mtx['editor']="Editor";
$mtx['email']="E-Mail";
-$mtx['endtags']="konform";
$mtx['external']="Name";
$mtx['filebrowser']="Dateibrowser";
$mtx['folders']="Ordner";
@@ -54,6 +52,5 @@
$mtx['urichar']="URL-Zeichen";
$mtx['userfiles']="Benutzerdateien";
$mtx['word separator']="Worttrennzeichen";
-$mtx['xhtml']="XHTML";
?>
Index: cmsimple/metaconfig.php
===================================================================
--- cmsimple/metaconfig.php (revision 1489)
+++ cmsimple/metaconfig.php (working copy)
@@ -28,8 +28,6 @@
$mcf['menu']['legal']="hidden";
$mcf['menu']['sdoc']="enum:,parent";
$mcf['uri']['length']="hidden";
-$mcf['xhtml']['endtags']="bool";
-$mcf['xhtml']['amp']="hidden";
$mcf['editmenu']['scroll']="bool";
$mcf['editmenu']['external']="xfunction:XH_registeredEditmenuPlugins";
?>
Furthermore the patch does not change the doctype of the bundled templates, but that's easy to do as well, and would not be necessary at all, if we will remove the templates from the standard distribution.