Dotclear

Changeset 3001


Ignore:
Timestamp:
02/25/11 09:15:57 (12 years ago)
Author:
sacha
Message:

myUrlHandlers - Dotclear 2.2.2 compatibility

Location:
plugins/myUrlHandlers
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • plugins/myUrlHandlers/_admin.php

    r778 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
  • plugins/myUrlHandlers/_define.php

    r778 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
     
    1616     /* Name */          'My URL handlers', 
    1717     /* Description*/    'Change Dotclear URL handlers', 
    18      /* Author */        'Oleksandr Syenchuk', 
    19      /* Version */       '2008.11', 
     18     /* Author */        'Alex Pirine', 
     19     /* Version */       '2011.02', 
    2020     /* Permissions */   'contentadmin', 
    2121     /* Priority */      1500 
  • plugins/myUrlHandlers/_install.php

    r778 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
     
    2121} 
    2222 
    23 $settings =& $core->blog->settings; 
    24 $settings->setNamespace(strtolower($label)); 
    25 $settings->put('url_handlers','','string','Personalized URL handlers',false); 
     23$core->blog->settings->addNamespace('myurlhandlers'); 
     24$s = &$core->blog->settings->myurlhandlers; 
     25$s->put('url_handlers','','string','Personalized URL handlers',false); 
    2626 
    2727$core->setVersion($label,$m_version); 
  • plugins/myUrlHandlers/_prepend.php

    r778 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
  • plugins/myUrlHandlers/class.myurlhandlers.php

    r778 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
     
    4545           
    4646          # Read user settings 
    47           $handlers = (array) @unserialize($core->blog->settings->url_handlers); 
     47          $handlers = (array) @unserialize($core->blog->settings->myurlhandlers->url_handlers); 
    4848          foreach ($handlers as $name => $url) 
    4949          { 
  • plugins/myUrlHandlers/index.php

    r1734 r3001  
    33# This file is part of My URL handlers, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2007-2008 Oleksandr Syenchuk 
    6 # <sacha@xn--phnix-csa.net> 
     5# Copyright (c) 2007,2008,2011 Alex Pirine 
     6# <alex pirine.fr> 
    77#  
    88# Licensed under the GPL version 2.0 license. 
     
    1919      
    2020     # Overwrite with user settings 
    21      $settings = @unserialize($core->blog->settings->url_handlers); 
     21     $settings = @unserialize($core->blog->settings->myurlhandlers->url_handlers); 
    2222     if (is_array($settings)) { 
    2323          foreach ($settings as $name=>$url) 
     
    6363     if (isset($_POST['act_save'])) 
    6464     { 
    65           $core->blog->settings->setNamespace('myurlhandlers'); 
    66           $core->blog->settings->put('url_handlers',serialize($handlers)); 
     65          $core->blog->settings->myurlhandlers->put('url_handlers',serialize($handlers)); 
    6766          $core->blog->triggerBlog(); 
    6867          $msg = __('URL handlers have been successfully updated.'); 
     
    7069     elseif (isset($_POST['act_restore'])) 
    7170     { 
    72           $core->blog->settings->setNamespace('myurlhandlers'); 
    73           $core->blog->settings->put('url_handlers',serialize(array())); 
     71          $core->blog->settings->myurlhandlers->put('url_handlers',serialize(array())); 
    7472          $core->blog->triggerBlog(); 
    7573          $handlers = myUrlHandlers::getDefaults(); 
  • plugins/myUrlHandlers/locales/fr/main.po

    r1734 r3001  
    22msgstr "" 
    33"Project-Id-Version: myUrlHandlers Dotclear module\n" 
    4 "POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-11-23 19:35+0100\n" 
    6 "Last-Translator: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 
     4"Report-Msgid-Bugs-To: \n" 
     5"POT-Creation-Date: 2011-02-24 22:10+0100\n" 
     6"PO-Revision-Date: 2011-02-24 22:10+0100\n" 
     7"Last-Translator: Alex Pirine <alex pirine.fr>\n" 
    78"Language-Team: Oleksandr Syenchuk <sacha@xn--phnix-csa.net>\n" 
    89"MIME-Version: 1.0\n" 
    9 "Content-Type: text/plain; charset=utf-8\n" 
     10"Content-Type: text/plain; charset=UTF-8\n" 
    1011"Content-Transfer-Encoding: 8bit\n" 
    1112"X-Poedit-Language: French\n" 
     
    1718 
    1819#: _admin.php:15 
    19 #: index.php:89 
    20 #: index.php:92 
     20#: index.php:87 
     21#: index.php:90 
    2122msgid "URL handlers" 
    2223msgstr "Gestionnaires d'URL" 
     
    3738msgstr "Doublon d'URL dans les gestionnaires \"%s\"." 
    3839 
    39 #: index.php:68 
     40#: index.php:67 
    4041msgid "URL handlers have been successfully updated." 
    4142msgstr "Les gestionnaires d'URL ont été mis à jour avec succès." 
    4243 
    43 #: index.php:76 
     44#: index.php:74 
    4445msgid "URL handlers have been successfully restored." 
    4546msgstr "Les gestionnaires d'URL ont été restaurés avec succès." 
    4647 
    47 #: index.php:101 
     48#: index.php:99 
    4849msgid "No URL handler to configure." 
    4950msgstr "Il n'y a aucun gestionnaire d'URL à définir." 
    5051 
    51 #: index.php:103 
     52#: index.php:101 
    5253msgid "You can write your own URL for each handler of this list." 
    5354msgstr "Vous pouvez écrire votre propre URL pour chaque gestionnaire de cette liste." 
    5455 
    55 #: index.php:121 
     56#: index.php:119 
    5657msgid "save" 
    5758msgstr "enregistrer" 
    5859 
    59 #: index.php:122 
     60#: index.php:120 
    6061msgid "reset" 
    6162msgstr "réinitialiser" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map