https://bugzilla.wikimedia.org/show_bug.cgi?id=37122

       Web browser: ---
             Bug #: 37122
           Summary: [SWL] 0.1;  User preferences notice on -> Undefined
                    variable: type / Undefined variable: name in
                    SemanticWatchlist.hooks.php
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticWatchlist
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Created attachment 10655
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10655
just three lines

Error message

Undefined variable: type in
...\extensions\SemanticWatchlist\SemanticWatchlist.hooks.php on line  164

Undefined variable: name in
...\extensions\SemanticWatchlist\SemanticWatchlist.hooks.php on line 170

Problem analysis

Defining a group neither specifying namespace, concept or category creates a
problem in SemanticWatchlist.hooks.php because of a missing variable definition
(switch in line 137 defines $type and $name only for namespace, concept or
category).

Solution

An easy way out is that in those cases where no (namespace, concept or
category) is found the switch falls back to a default and assumes that
properties are watched in namespace main ->  wfMsg( 'main' ).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to